当我尝试列出包含路径的组件时:
e:\Work\Projects\AllDash>bower list --paths
我收到此错误:
C:\Users\UserName\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:126
throw e;
^
TypeError: Cannot read property '_release' of undefined
at StandardRenderer._tree2archy (C:\Users\UserName\AppData\Roaming\npm\node_modules\bower\lib\renderers\StandardRenderer.js:417:47)
at StandardRenderer._list (C:\Users\UserName\AppData\Roaming\npm\node_modules\bower\lib\renderers\StandardRenderer.js:174:20)
at StandardRenderer.end (C:\Users\UserName\AppData\Roaming\npm\node_modules\bower\lib\renderers\StandardRenderer.js:39:21)
at Logger.<anonymous> (C:\Users\UserName\AppData\Roaming\npm\node_modules\bower\bin\bower:106:22)
at Logger.emit (events.js:95:17)
at Logger.emit (C:\Users\UserName\AppData\Roaming\npm\node_modules\bower\node_modules\bower-logger\lib\Logger.js:29:39)
at C:\Users\UserName\AppData\Roaming\npm\node_modules\bower\lib\commands\index.js:38:25
at _fulfilled (C:\Users\UserName\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\UserName\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:816:30)
at Promise.promise.promiseDispatch (C:\Users\UserName\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:749:13)
请帮我修理一下。
答案 0 :(得分:0)
陷入同样的问题。正在运行npm update -g bower
为我修复了它。