generator-fountain-webapp安装错误

时间:2016-07-02 19:44:36

标签: yeoman-generator-angular

我正在尝试安装generator-fountain-webapp。 当我做“yo fountain-webapp”时,我收到以下错误。有什么建议吗?

yo fountain-webapp
/usr/local/lib/node_modules/generator-fountain-webapp/generators/app/index.js:6
 initializing() {
             ^
SyntaxError: Unexpected token (
   at exports.runInThisContext (vm.js:73:16)
   at Module._compile (module.js:443:25)
   at Object.Module._extensions..js (module.js:478:10)
   at Module.load (module.js:355:32)
   at Function.Module._load (module.js:310:12)
   at Module.require (module.js:365:17)
   at require (module.js:384:17)
   at Object.defineProperty.get [as fountain-webapp:app] (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/lib/store.js:40:23)
   at Store.get (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/lib/store.js:64:35)
   at Environment.get (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/lib/environment.js:260:16)

1 个答案:

答案 0 :(得分:2)

我刚遇到同样的问题。我设法通过更新节点和npm来修复它。

您可以从node site下载最新版本。或者,如果您使用自制程序安装节点,则可以使用brew upgrade node