![](/img/trans.png)
[英]`npm install` not working. Unhandled rejection Error: EISDIR: illegal operation on a directory
[英]Problem with npm install: illegal operation on a directory
我正在尝试升级npm:
npm install -g npm
但是我多次收到类似的警告:
warn tar EISDIR: illegal operation on a directory, open '/tmp/npm-4154-cadf3470/unpack-87786b4c/bin/node-gyp-bin'
我的堆栈跟踪以错误结尾,该错误指示找不到文件:
npm ERR! path /private/tmp/npm-4154-cadf3470/unpack-87786b4c/node_modules/run-queue/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/private/tmp/npm-4154-cadf3470/unpack-87786b4c/node_modules/run-queue/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
还有其他人有类似的问题吗?
必须完全卸载节点并使用brew重新安装:
brew install node
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.