question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vue cli not create webpack-simple

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

40reactions
jiujiuwencommented, Nov 28, 2017

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.

1reaction
Musbellcommented, Dec 12, 2017

Thanks @jiujiuwen

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to configure Webpack-simple with Vue Cli 3?
Not with webpack-simple. The standard way is to use vue create now, which creates its own configuration. Do have any questions regarding the...
Read more >
Working with Webpack | Vue CLI
Some webpack options are set based on values in vue.config.js and should not be mutated directly. For example, instead of modifying ...
Read more >
Vue-cli Webpack-Simple Tutorial - Vegibit
The vue-cli tool gives us a “batteries-included” build environment that ... Not loading all files on startup (allows lazy loading); Automatic Hot Reloading ......
Read more >
Vue CLI 3 - Creating our Project - Real World Vue 2
Learn how to create a project with Vue CLI 3 from the command line and with the Vue UI. Then learn how the...
Read more >
Developing and Distributing Vue.js Packages - Voerro Tutorials
Using vue-cli we can easily create an empty project with webpack set up out of the box ... This creates a new Vue...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found