vue-cli: vue init webpack myproject : vue-init(1) does not exist, try --help
Same as here https://github.com/vuejs/vue-cli/issues/66 but that issue was closed without a solution.
$ vue init webpack myproject
vue-init(1) does not exist, try --help
$ vue list
vue-list(1) does not exist, try --help
$ vue --help
Usage: vue <command> [options]
Commands:
init generate a new project from a template
list list available official templates
help [cmd] display help for [cmd]
Options:
-h, --help output usage information
-V, --version output the version number
$ vue help init
vue-init(1) does not exist, try --help
Fresh new install (npm install --global vue-cli and npm install --global vue)
node 4.6.0
npm 2.15.9
vue 2.4.0
openSUSE 13.2 64-bit 3.16.7
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 4
- Comments: 16 (3 by maintainers)
fwiw, I was having this issue when I tried running
vueafter installingvue-cliglobally withyarn.Did
yarn global add vue-cliand then had thedoes not existissue.Did
npm install -g vue-cliand I don’t have the issue - everything works fine.npm install -g vue-cli this worked for me
I face the same problem so I use
vue-init command instead of vue init This command is available in vue@2.4.0 use vue-init project-name
@posva yep! just did
npm install -g vue-cli, version hasn’t changed (vue --version # => 2.4.0), but now it works