简体   繁体   English

npm不支持Node.js v16.14.0

[英]npm does not support Node.js v16.14.0

I have seen several questions on this theme, usually with incompatible pairings of node/npm.我已经看到几个关于这个主题的问题,通常是节点/npm 的不兼容配对。 In my case, I installed node16 via nvm (which also gave me the appropriate npm with it), and mostly everything works well.在我的例子中,我通过nvm node16它也给了我相应的npm ),并且大多数情况下一切正常。 Except, when I use npm to start my service, I get this message (though, other than the message, it works fine)除了,当我使用npm启动我的服务时,我收到这条消息(尽管除了这条消息,它工作正常)

➜  zenodeo3 git:(master) which node
/Users/punkish/.nvm/versions/node/v16.14.0/bin/node
➜  zenodeo3 git:(master) node -v
v16.14.0
➜  zenodeo3 git:(master) which npm
/Users/punkish/.nvm/versions/node/v16.14.0/bin/npm
➜  zenodeo3 git:(master) npm -v
8.3.1
➜  zenodeo3 git:(master) npm run dev

> zenodeo-fastify@3.0.0 dev
> npm run development

npm WARN npm npm does not support Node.js v16.14.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9, 10.
npm WARN npm You can find the latest version at https://nodejs.org/

weird, no?奇怪,不是吗?

I have the same problem the solution for me was Go to the path where you can find the debug log (this file is found in your npm-cache folder) if you are on windows you can find it when you press the windows button with the letter r and you put in "%AppData%/npm-cache" Delete the NPM and NPM-Cache folder, but DO NOT reinstall node.我有同样的问题我的解决方案是 Go 到你可以找到调试日志的路径(这个文件在你的 npm-cache 文件夹中)如果你在 windows 你可以在你按下 windows 按钮时找到它字母 r 并放入“%AppData%/npm-cache” 删除 NPM 和 NPM-Cache 文件夹,但不要重新安装节点。 Once deleted go back to your command line and re-use the command " npm install -g npm@latest "一旦删除 go 回到你的命令行并重新使用命令“ npm install -g npm@latest ”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM