问题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/