执行命令
npm -g update
提示
npm ERR! Object.keys called on non-object
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "-g" "update"
npm ERR! node v0.10.34
npm ERR! npm v2.1.14
npm ERR! Object.keys called on non-object
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "-g" "update"
npm ERR! node v0.10.34
npm ERR! npm v2.1.14
npm ERR! Object.keys called on non-object
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Library/WebServer/Documents/wordpress/npm-debug.log
好像不是网络问题,VPN也不好使,请问怎么解决?
npm i -g npm@next
先用预览版本,v2.1.14 有 bug。