[英]Yeoman yo webapp fails with TypeError
After upgrading to nodejs 0.10.0 and npm 1.2.14 yeoman 1.0 beta fails if I try to create a webapp: 升级到nodejs 0.10.0和npm 1.2.14之后,如果我尝试创建一个webapp,则yeoman 1.0 beta会失败:
$ yo webapp
path.js:360
throw new TypeError('Arguments to path.join must be strings');
^
TypeError: Arguments to path.join must be strings
at path.js:360:15
at Array.filter (native)
at Object.exports.join (path.js:358:36)
at Object.<anonymous> (/opt/nodejs/node-v0.10.0-linux-x64/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/bower/lib/core/config.js:41:22)
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)
Node is installed in /opt/nodejs/node-v0.10.0-linux-x64
. 节点安装在/opt/nodejs/node-v0.10.0-linux-x64
。 The NODE_PATH
environment variable points to that path: NODE_PATH
环境变量指向该路径:
$ echo $NODE_PATH
/opt/nodejs/node-v0.10.0-linux-x64
Even yo init
fails with the same error. 即使yo init
失败也有同样的错误。
Any suggestions what going wrong here? 有什么建议在这里出错吗?
This was an error in Bower and got already fixed. 这是Bower的一个错误,已经修复了。 You can manually update your bower installation or wait for the updated generators. 您可以手动更新您的凉亭安装或等待更新的生成器。 This is the commit that fixed the issue. 这是修复问题的提交 。
FWIW, I was able to make this all go away when I ran it with node 0.8.16. FWIW,当我用节点0.8.16运行它时,我能够完全消失。 Using 0.10.0 caused it to bork. 使用0.10.0导致它bork。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.