看下npm版本,2.6.1以上才支持npm update -g更新npm版本的方法是npm install npm@latest -g p.s.查看是否有更新可以执行命令local package: npm outdatedglobal package: npm outdated -g --depth=0
看下npm版本,2.6.1以上才支持npm update -g
更新npm版本的方法是
npm install npm@latest -g
p.s.
查看是否有更新可以执行命令
local package: npm outdated
global package: npm outdated -g --depth=0