您的位置:首页 > 编程语言

[vscode] github travis 集成问题

2017-05-10 12:01 429 查看

问题log

$ npm install
-npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'types/mocha' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'cpplint'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 4.8.12-040812-generic
npm ERR! command "/home/travis/.nvm/v0.10.36/bin/node" "/home/travis/.nvm/v0.10.36/bin/npm" "install"
npm ERR! cwd /home/travis/build/secularbird/cpplint-extension
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/travis/build/secularbird/cpplint-extension/npm-debug.log
npm ERR! not ok code 0

原因

nodejs的版本不够

解决方法

.travis.yml 中添加下nodejs的版本

language: node_js
node_js:
- "6"

refer: https://docs.travis-ci.com/user/languages/javascript-with-nodejs/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: