個人配置: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