'Object.keys called on non-object' 将 Bower 从 1.3.12 版升级到 1.4.1 版时出错
'Object.keys called on non-object' error when upgrading bower from version 1.3.12 to version 1.4.1
在我运行bower install
之后,我得到一个警告:
┌───────────────────────────────────────────┐
│ Update available: 1.4.1 (current: 1.3.12) │
│ Run npm update -g bower to update. │
└───────────────────────────────────────────┘
如果我按照说明和 运行 update
命令进行操作,我会得到一个 'Object.keys called on non-object' 错误列表
> npm update -g bower ✭ ✱
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "update" "-g" "bower"
npm ERR! node v0.10.35
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.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "update" "-g" "bower"
npm ERR! node v0.10.35
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 和 运行 npm install -g bower
在我运行bower install
之后,我得到一个警告:
┌───────────────────────────────────────────┐
│ Update available: 1.4.1 (current: 1.3.12) │
│ Run npm update -g bower to update. │
└───────────────────────────────────────────┘
如果我按照说明和 运行 update
命令进行操作,我会得到一个 'Object.keys called on non-object' 错误列表
> npm update -g bower ✭ ✱
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "update" "-g" "bower"
npm ERR! node v0.10.35
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.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "update" "-g" "bower"
npm ERR! node v0.10.35
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 和 运行 npm install -g bower