【发布时间】:2021-11-14 09:05:48
【问题描述】:
C:\Users\jason\OneDrive\Documents\Web-Dev-Projects\pinterest-clone>npm install
npm ERR! Windows_NT 10.0.19042
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\jason\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v14.17.6
npm ERR! npm v3.10.10
npm ERR! cb.apply is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\jason\OneDrive\Documents\Web-Dev-Projects\pinterest-clone\npm-debug.log
我遇到了这个非常烦人的错误,它甚至没有告诉我 npm 出了什么问题。我尝试再次删除和安装 node.js 并运行命令 npm install 但我仍然会收到错误。我什至尝试运行命令以使用最新版本的 npm,但它仍然无法正常工作(npm install -g npm-windows-upgrade & npm-windows-upgrade)。
看起来 npm 只是有很多错误并且不想工作。请帮忙。
【问题讨论】:
-
考虑到npm的当前版本是7.x,3.10.10不是很新。