Travis CI 给出 *命令 "npm config set spin false" 失败并在 .* 期间以 127 退出
Travis CI giving *The command "npm config set spin false" failed and exited with 127 during .*
我是 Travis 的新手 CI,我正在尝试在 nodejs 中集成一个非常简单的包。
当我 运行 在本地进行测试时,它们会成功,但是当 Travis 尝试 运行 测试时,它会失败并显示以下测试:
... (600 lines of logs)
Waf: Leaving directory `/home/travis/.nvm/src/node-v0.4.12/build'
'install' finished successfully (0.092s)
Now using node v0.4.12
/home/travis/build.sh: line 45: npm: command not found
The command "npm config set spin false" failed and exited with 127 during .
Your build has been stopped.
而.travis.yml文件内容如下:
language: node_js
node_js:
- 0.4
- 0.5
- 0.6
知道会发生什么吗?
这是 Travis 中的存储库:https://travis-ci.org/agarcian/passwordhash
看起来 npm
没有安装在该环境中。您的目标节点 0.4
,isn't supported by npm. Note that the error for your 0.6
build environment 不同:
Error: No compatible version found: buffer-equal-constant-time@'^1.0.1'
这些是非常旧的节点版本。
您是不是想定位 4
、5
和 6
而不是 0.4
、0.5
和 0.6
?
我是 Travis 的新手 CI,我正在尝试在 nodejs 中集成一个非常简单的包。
当我 运行 在本地进行测试时,它们会成功,但是当 Travis 尝试 运行 测试时,它会失败并显示以下测试:
... (600 lines of logs)
Waf: Leaving directory `/home/travis/.nvm/src/node-v0.4.12/build'
'install' finished successfully (0.092s)
Now using node v0.4.12
/home/travis/build.sh: line 45: npm: command not found
The command "npm config set spin false" failed and exited with 127 during .
Your build has been stopped.
而.travis.yml文件内容如下:
language: node_js
node_js:
- 0.4
- 0.5
- 0.6
知道会发生什么吗?
这是 Travis 中的存储库:https://travis-ci.org/agarcian/passwordhash
看起来 npm
没有安装在该环境中。您的目标节点 0.4
,isn't supported by npm. Note that the error for your 0.6
build environment 不同:
Error: No compatible version found: buffer-equal-constant-time@'^1.0.1'
这些是非常旧的节点版本。
您是不是想定位 4
、5
和 6
而不是 0.4
、0.5
和 0.6
?