最近我尝试在CircleCI中添加npm的压缩包,这导致了一堆错误,而大多数错误我只能解决一个。
npm ERR! argv "/opt/circleci/nodejs/v5.0.0/bin/node" "/opt/circleci/nodejs/v5.0.0/bin/npm" "install"
npm ERR! node v5.0.0
npm ERR! npm v3.3.6
npm ERR! path /home/ubuntu/..../node_modules/eslint/node_modules/espree/node_modules/acorn-jsx
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/home/ubuntu/.../node_modules/eslint/node_modules/espree/node_modules/acorn-jsx' -> '/home/ubuntu/..../node_modules/acorn-jsx'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 我的圈CI文件:
machine:
node:
version: 5.0.0
dependencies:
override:
- npm install acorn-js
- npm install
- npm install istanbul -g
- npm install mocha -g
- npm install karma-mocha -g我在伊斯坦布尔有错误,所以我在全局安装它,现在在acorn-js上也有错误(我不直接使用它,但我认为伊斯坦布尔是)。
谢谢你的帮助!
编辑:最终返回到节点4.4.5,问题就解决了。
发布于 2016-11-03 02:59:55
所以npm找不到文件。你有没有尝试过在全局安装acorn-js?
npm install acorn-js -g
https://stackoverflow.com/questions/40318672
复制相似问题