[英]Warning message from npm after installing node v13
我安裝了最新的 node.js v13。 安裝后,我運行npm -g upgrade
得到以下警告;
npm WARN npm npm does not support Node.js v13.0.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 6, 8, 9, 10, 11, 12.
npm WARN npm You can find the latest version at https://nodejs.org/
npm WARN npm npm does not support Node.js v13.0.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 6, 8, 9, 10, 11, 12.
npm WARN npm You can find the latest version at https://nodejs.org/
如何清除警告? 如果我忽略,會有什么副作用嗎?
我正在使用 Windows 10。
您安裝的 Nodejs 版本 v13.0.0 不支持 npm。 使用新的 npm 版本,您將能夠使用 npm 使用節點。 如果要使用 npm,可能需要降級節點。
github 上已經報告了一個問題。 請查看鏈接: https://github.com/nodejs/node/issues/30066
我會回答我自己的問題。
npm@6.12.1 剛剛發布。 我已經測試過在我的電腦上運行install -g npm
可以解決這個問題。
功勞歸於在此鏈接中發表評論的人; https://github.com/nodejs/node/issues/30066#issuecomment-547551833
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.