[英]Travis CI nodejs 4 and eval npm install
I m building an electron application with Node V4.4.3 and I need to build it using travis CI. 我正在使用Node V4.4.3构建一个电子应用程序,我需要使用travis CI构建它。
Actually, my Travis CI looks like this : 实际上,我的Travis CI看起来像这样:
language: node_js
node_js:
- "4"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
after_script:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
According to travis, it seems that the build is okay one time per day (see #12 and #8 ) 根据travis的说法,似乎构建每天都可以进行一次(参见#12和#8 )
In other cases, it seems that the npm install command fails displaying me errors like : 在其他情况下,似乎npm install命令无法显示如下错误:
The command "eval npm install " failed.
命令“eval npm install”失败。 Retrying, 2 of 3.
重试,2分之3。
And the process is killed because of timeout (after ~40 mns) 并且该过程因超时而被杀死(大约40分钟后)
Any idea of what happens ? 怎么会发生什么?
Please downgrade the version of grunt to grunt": "^0.4.5 请将grunt的版本降级为grunt“:”^ 0.4.5
As npm 2 doesn't support grunt version : 1.0.0 由于npm 2不支持grunt版本:1.0.0
$ npm --version 2.15.11 $ npm --version 2.15.11
so for this dependencies should be :- 所以对于这种依赖应该是: -
"devDependencies": { "grunt": "^0.4.5", “devDependencies”:{“grunt”:“^ 0.4.5”,
"grunt-bower-install": "^1.6.0", “grunt-bower-install”:“^ 1.6.0”,
"grunt-contrib-jshint": "^1.0.0", “grunt-contrib-jshint”:“^ 1.0.0”,
"grunt-maven-tasks": "^1.4.0", "grunt-npm-install": "^0.3.1" “grunt-maven-tasks”:“^ 1.4.0”,“grunt-npm-install”:“^ 0.3.1”
} }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.