执行命令
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也不好使,请问怎么解决?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
npm i -g npm@next先用预览版本,v2.1.14 有 bug。会不会已经是最新的了。
我这边
npm -g update第一遍OK,第二遍出现跟你一样的错误。npm install -g npm