已安装好npm须要更新到最新

个人配置:MacBook Air,macOS sierra 10.12.2node

1.查看npm版本git

Dean:~ dean$ npm -v
3.10.3
Dean:~ dean$

如今不是已经npm 4.0了吗,这么旧,呆会更新一下吧。github

2.查看一下node.js版本npm

Dean:~ dean$ npm config list
; cli configs
user-agent = "npm/3.10.3 node/v6.5.0 darwin x64"

; builtin config undefined
prefix = "/usr/local/Cellar/node/6.5.0/libexec/npm"

; node bin location = /usr/local/Cellar/node/6.5.0/bin/node
; cwd = /Users/dean
; HOME = /Users/dean
; "npm config ls -l" to show all defaults.

Dean:~ dean$ node -v
v6.5.0

啊~node.js如今不是6.92了吗?呆会一块儿升了吧bash

下载升级。ui

1.npm的开源https://github.com/npm/npmcode

相关文章
相关标签/搜索