將本地Node升級(jí)到9.2.0版本之后,使用NPM命令的時(shí)候時(shí)候提示:
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
貌似這是新版本的一個(gè)BUG弛槐,在這個(gè)ISSUE里面可以看到相關(guān)的討論:https://github.com/npm/npm/issues/19019
基本的思路是想辦法升級(jí)NPM到5.6.0版本(npm install -g npm@latest
)
但是由于我的NPM命令根本無法用教届,所以還是通過brew
方式來進(jìn)行升級(jí)响鹃。
brew install --devel node