运行最新的npm和节点,我已经检查过,以确保他们的所有权特权是正确的,有想法吗?
TypeError: Cannot read property 'bold' of undefined
at Object.<anonymous> (/usr/local/lib/node_modules/generator-webapp/node_modules/yeoman-generator/lib/util/common.js:5:56)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/usr/local/lib/node_modules/generator-webapp/node_modules/yeoman-generator/lib/base.js:101:26)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)发布于 2013-08-22 20:02:44
也有同样的问题。我的解决办法是手动更新尤曼生成器。为此,我在/usr/lib/node_modules/generator-webapp/中编辑了/usr/lib/node_modules/generator-webapp/,并将yeoman-generator的版本更改为0.13.2,然后在目录中运行npm install。
生成器-webapp的git存储库已经在使用最新的约曼生成器版本,但我想你必须等待新版本的发布。
发布于 2013-08-22 18:04:31
节点包未完全安装。
试一试
npm update generator-webapp -g发布于 2013-08-22 19:55:48
我也遇到了同样的问题,我唯一改变的就是将NodeJS更新到0.10.17版本,但我不知道.
https://stackoverflow.com/questions/18387611
复制相似问题