当我遇到以下错误时,我试图更新yeoman发生器聚合物。我尝试从终端转到Yo菜单进行更新。
events.js:74
throw TypeError('Uncaught, unspecified "error" event.');
^
TypeError: Uncaught, unspecified "error" event.
at TypeError (<anonymous>)
at emit (events.js:74:15)
at /usr/local/lib/node_modules/yo/yoyo.js:53:12
at /usr/local/lib/node_modules/yo/node_modules/async/lib/async.js:254:17
at done (/usr/local/lib/node_modules/yo/node_modules/async/lib/async.js:129:15)
at /usr/local/lib/node_modules/yo/node_modules/async/lib/async.js:32:16
at /usr/local/lib/node_modules/yo/node_modules/async/lib/async.js:251:21
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/yo/node_modules/async/lib/async.js:575:34)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:810:12)
我清除了缓存并重新安装了稳定版本的Node,但我一直收到错误。知道出了什么问题吗?