1
试图生成在Linux Mint的ENVJHipster - 发生器给出'Unexpected token'错误?
yo jhipster
干净jhipster项目为
/home/poc/node_modules/generator-jhipster/generators/app/index.js:15
constructor: function (...args) { // eslint-disable-line object-shorthand
^^^
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.defineProperty.get [as jhipster: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:262:16)
我
yo doctor
给
Yeoman Doctor
Running sanity checks on your system
✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✔ npm version
我运行这些版本
nodejs - v4.2.6
npm - 3.5.2
yo - 1.8.5
有什么想法?
我找到了关于如何在这里升级nodejs的说明http://askubuntu.com/questions/695138/how-to-upgrade-install-newest-version-of-nodejs-on-ubuntu-14-04 – emeraldjava
您的答案是正确的,它也可以帮助我,但你应该在回答中添加评论状态 – Rahul