[英]`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.