Travis CI给出*命令" npm config set spin false"失败并在127期间退出。*

时间:2016-06-13 20:46:12

标签: node.js npm travis-ci

我是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

1 个答案:

答案 0 :(得分:1)

看起来npm尚未在该环境中安装。您定位节点0.4isn't supported为npm。请注意your 0.6 build environment的错误不同:

  

Error: No compatible version found: buffer-equal-constant-time@'^1.0.1'

这些是节点的旧版本。

您是否可能意味着定位456而不是0.40.50.6