繁体   English   中英

Yeoman yo webapp因TypeError而失败

[英]Yeoman yo webapp fails with TypeError

升级到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)

节点安装在/opt/nodejs/node-v0.10.0-linux-x64 NODE_PATH环境变量指向该路径:

$ echo $NODE_PATH 
/opt/nodejs/node-v0.10.0-linux-x64

即使yo init失败也有同样的错误。

有什么建议在这里出错吗?

这是Bower的一个错误,已经修复了。 您可以手动更新您的凉亭安装或等待更新的生成器。 这是修复问题的提交

FWIW,当我用节点0.8.16运行它时,我能够完全消失。 使用0.10.0导致它bork。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM