昨晚我升级了我的Node.JS,之后我的npm安装停止了工作。我已经卸载了Node并重新安装了它,但这没用。我使用的是Windows 8.1,Node - 8.9.4和NPM - 3.3.12。以下是我在运行npm install时遇到的错误。
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Subrata\\AppData
\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v8.9.4
npm ERR! npm v3.3.12
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'internal/util/types'
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! D:\1-NodeJSTest\CoreNodeJSTest\SimpleSessionTest\npm-debug.log
答案 0 :(得分:0)
你的NPM可能已经过时了。尝试键入npm install -g npm
进行升级,然后关闭命令提示符并打开另一个命令提示符,并尝试再次执行npm install
。如果这不起作用,请运行node --version
和npm --version
并在此处发表评论。