Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue cli not create webpack-simple #618

Closed
mehrdadphp opened this issue Oct 20, 2017 · 10 comments
Closed

vue cli not create webpack-simple #618

mehrdadphp opened this issue Oct 20, 2017 · 10 comments

Comments

@mehrdadphp
Copy link

mehrdadphp commented Oct 20, 2017

hi

I upgraded node js and vue cli . but I can not create new template .

vue init webpack-simple


/usr/local/lib/node_modules/vue-cli/bin/vue-init:60
let template = program.args[0]
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    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 Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

node : v4.2.6
npm : 3.5.2
vue-cli : 2.9.1

Thank you for helping me

@posva
Copy link
Member

posva commented Oct 20, 2017

Use at least node 6
I think that now we should start dropping support for node 4 as node 8 is soon entering LTS

@mjosborne1
Copy link

Hi I have the same version issue on the Windows Linux subsystem.
nodejs is already the newest version (4.2.6~dfsg-1ubuntu4.1).
Is there a way to install a newer version other than apt-get or do I need to go running back to powershell?

@jiujiuwen
Copy link

Perhaps node verison is too low.
update your node version using

npm install -g n 
sudo n stable  
sudo npm install npm -g

when you node -v find there is no change, but try to init vue project again.

@herOwOw
Copy link

herOwOw commented Nov 29, 2017

thx jiujiuwen

@Musbell
Copy link

Musbell commented Dec 12, 2017

Thanks @jiujiuwen

1 similar comment
@huangnian630
Copy link

Thanks @jiujiuwen

@dbarjs
Copy link

dbarjs commented Mar 2, 2018

Thanks @jiujiuwen
(i'm using Ubuntu 17.04)

@elinardo10
Copy link

Obrigado @jiujiuwen resolveu meu priblema tbm. Usando ubuntu 16.4 via vagrant

@Broadroad
Copy link

Thanks @jiujiuwen

1 similar comment
@siddeshwarnavink
Copy link

Thanks @jiujiuwen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests