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

相关文章:

  • 2021-06-12
  • 2021-08-22
  • 2021-12-29
  • 2022-01-10
  • 2022-02-21
  • 2021-08-16
  • 2021-07-12
  • 2021-04-23
猜你喜欢
  • 2022-01-21
  • 2021-06-03
  • 2022-02-21
  • 2021-10-05
  • 2021-12-10
  • 2021-05-27
  • 2021-08-02
相关资源
相似解决方案