我是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
答案 0 :(得分:1)
看起来npm
尚未在该环境中安装。您定位节点0.4
,isn't supported为npm。请注意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
?