2.9.3
Just init a Vue project.
success
PS D:\Git> vue init webpack certain-name
Unknown command init.
vue-cli · Failed to download repo vuejs-templates/[object Object]: Response code 404 (Not Found)
=> seems to resolve the word "webpack" to [object Object]
actully the version of vue-cli is 2.9.4
in 2.9.3 it works fine.
But you don't have vesion 2.9.4 right?
https://www.npmjs.com/package/vue-cli
I have the same problem.
when i run command available in vue-cli like init/list
it will show Unknow command init/list(vue init will fail,while vue list sucess)
in 2.9.4
$ npm install vue-cli -g
C:\Users\root\AppData\Roamingnpm\vue-list -> C:\Users\root\AppData\Roamingnpmnode_modules\vue-cli\bin\vue-list
C:\Users\root\AppData\Roamingnpm\vue -> C:\Users\root\AppData\Roamingnpmnode_modules\vue-cli\bin\vue
C:\Users\root\AppData\Roamingnpm\vue-init -> C:\Users\root\AppData\Roamingnpmnode_modules\vue-cli\bin\vue-init
**$ vue init webpack my-project
Unknown command init.
vue-cli · Failed to download repo vuejs-templates/[object Object]: Response code 404 (Not Found)**
It seems it has been introduced in 2.9.4
.
Here is the diff between 2.9.3
and 2.9.4
: https://github.com/vuejs/vue-cli/compare/0c94809c7b63431b800f2bb2815f515a09257878...3774d25895584badeb9f9d5caede57e69465fa85.
I have the same problem.. trying to install a nuxt template
$ vue init nuxt-community/starter-template testnuxt
Unknown command init.
vue-cli · Failed to download repo vuejs-templates/[object Object]: Response code 404 (Not Found)
[email protected]
$ vue init nuxt-community/starter-template testnuxt
A newer version of vue-cli is available.
latest: 2.9.4
installed: 2.9.3
? Project name testnuxt
? Project description my first proyect whit nuxt
? Author @SrShark
vue-cli · Generated "testnuxt".
To get started:
cd testnuxt
npm install # Or yarn
npm run dev
System config
- Windows 10 pro
- node v8.11.2
- npm v6.0.1
same issue:
Unknown command init.
vue-cli · Failed to download repo vuejs-templates/[object Object]: Response code 404 (Not Found)
seems should use command vue-init
like vue-init mpvue/mpvue-quickstart my-project
看不懂大家都在聊啥....
at global variable environmental,we should use 'npm i [email protected] -g'.and then,we can vue init webpack XXX to use vue-cli
same problem here with 2.9.4
using vue-init
instead works at the time being
It is a patch update!
@yyx990803, does it should contain breaking changes?
This wasn't intended as a breaking change. It's an issue which wasn't foreseen and should be resolved soon. Sorry for the inconvenience.
$vue init webpack templeVueDemo
Unknown command init.
vue-cli · Failed to download repo vuejs-templates/[object Object]: Response code 404 (Not Found)
same problem here with 2.9.4
@Akryum don't worry, it happens! 🙂
Fixed in 2.9.5
vue2.9.4不识别那个命令 我安装2.9.3就可以了
卸载当前版本 npm uninstall vue-cli -g
安装 cnpm install [email protected] -g
A new Update fixed the issue
When is use npm i -g vue-cli its showing this error!!Help me with this.
alisha@als-ultimate-saviour:~/summer-2018/Tab-Tracker$ npm i -g vue-cli
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN rm not removing /home/alisha/.local/bin/vue as it wasn't installed by /home/alisha/.local/lib/node_modules/vue-cli
/home/alisha/.local/bin/vue-list -> /home/alisha/.local/lib/node_modules/vue-cli/bin/vue-list
/home/alisha/.local/bin/vue-init -> /home/alisha/.local/lib/node_modules/vue-cli/bin/vue-init
/home/alisha/.local/bin/vue -> /home/alisha/.local/lib/node_modules/vue-cli/bin/vue
error: unknown option `-v'
alisha@als-ultimate-saviour:~/summer-2018/Tab-Tracker$ npx vue-cli -V
npx: installed 252 in 3.887s
2.9.6
alisha@als-ultimate-saviour:~/summer-2018/Tab-Tracker$ vue
No command 'vue' found, did you mean:
Command 'vpe' from package 'texlive-latex-extra' (universe)
vue: command not found
@alishamohanty please open a new issue, this is unrelated to this one.
Most helpful comment
Fixed in 2.9.5