问题log
$ npm install-npm ERR! 404 Not Foundnpm ERR! 404 npm ERR! 404 'types/mocha' is not in the npm registry.npm ERR! 404 You should bug the author to publish itnpm ERR! 404 It was specified as a dependency of 'cpplint'npm ERR! 404 npm ERR! 404 Note that you can also install from anpm ERR! 404 tarball, folder, or http url, or git url.npm ERR! System Linux 4.8.12-040812-genericnpm 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-extensionnpm ERR! node -v v0.10.36npm ERR! npm -v 1.4.28npm ERR! code E404npm ERR! npm ERR! Additional logging details can be found in:npm ERR! /home/travis/build/secularbird/cpplint-extension/npm-debug.lognpm ERR! not ok code 0
原因
nodejs的版本不够
解决方法
.travis.yml 中添加下nodejs的版本
language: node_jsnode_js: - "6"
refer:
posted on 2017-05-10 12:01 阅读( ...) 评论( ...)