`bower list --paths`错误:无法读取属性' _release'

时间:2014-07-04 19:03:13

标签: node.js bower

当我尝试列出包含路径的组件时:

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)

请帮我修理一下。

1 个答案:

答案 0 :(得分:0)

陷入同样的​​问题。正在运行npm update -g bower为我修复了它。