npm提示Unsupported version of node的解決方法

將本地Node升級到9.2.0版本之后,使用NPM命令的時候時候提示:

npm WARN npm npm does not support Node.js v9.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 4, 6, 7, 8.
npm WARN npm You can find the latest version at
https://nodejs.org/

我本地的NPM版本未5.6.1

貌似這是新版本的一個BUG,在這個ISSUE里面可以看到相關(guān)的討論:https://github.com/npm/npm/issues/19019

基本的思路是想辦法升級NPM到5.6.0版本(npm install -g npm@latest

但是由于我的NPM命令根本無法用,所以還是通過brew方式來進行升級。

brew install --devel node
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • This project was bootstrapped with Create React App. Belo...
    unspecx閱讀 5,318評論 0 2
  • 描述 npm從以下來源獲取配置值,按優(yōu)先級排序: 命令行標(biāo)記 在命令行上放置--foo bar設(shè)置foo配置參數(shù)為...
    竹天亮閱讀 44,522評論 0 8
  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,697評論 19 139
  • 題記 上周末去參加了一個讀書會活動,其中主持人提到,你可以想象哪幾本書能夠代表你自己,我沒有想起來,可是卻結(jié)結(jié)實實...
    我是瑞雪閱讀 2,939評論 32 74
  • 開頭的一些話:也不知道為什么,突然想在這個看著Derivatives securities and corpora...
    jj720閱讀 233評論 0 1

友情鏈接更多精彩內(nèi)容