All Vue commands return “Unknown command”












1















Using Vue 2.9.4 on Ubuntu 18.04, all commands return the error "Unknown command"



compustretch@instance-1:~/vuetest$ vue init webpack testapp

Unknown command init.

vue-cli · Failed to download repo vuejs-templates/[object Object]: Response code 404 (Not Found)

compustretch@instance-1:~/vuetest$ vue list

Unknown command list.

Available official templates:

★ browserify - A full-featured Browserify + vueify setup with hot-reload, linting & unit testing.
★ browserify-simple - A simple Browserify + vueify setup for quick prototyping.
★ pwa - PWA template for vue-cli based on the webpack template
★ simple - The simplest possible Vue setup in a single HTML file
★ webpack - A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
★ webpack-simple - A simple Webpack + vue-loader setup for quick prototyping.

compustretch@instance-1:~/vuetest$ vue help init

Unknown command help.

vue-[object Object](1) does not exist, try --help

compustretch@instance-1:~/vuetest$ vue --version
2.9.4
compustretch@instance-1:~/vuetest$


Hoping someone has an inkling why this is happening, as I've been banging my head on this and there's nothing in search results at all.










share|improve this question























  • I have the same issue in windows, it seems vue 2.9.4 is a mistake

    – Ivan
    May 31 '18 at 7:04











  • Same issue on macOS 10.13.4

    – widyakumara
    May 31 '18 at 11:56











  • got the same issue on macOS

    – vishwaraj
    May 31 '18 at 17:55
















1















Using Vue 2.9.4 on Ubuntu 18.04, all commands return the error "Unknown command"



compustretch@instance-1:~/vuetest$ vue init webpack testapp

Unknown command init.

vue-cli · Failed to download repo vuejs-templates/[object Object]: Response code 404 (Not Found)

compustretch@instance-1:~/vuetest$ vue list

Unknown command list.

Available official templates:

★ browserify - A full-featured Browserify + vueify setup with hot-reload, linting & unit testing.
★ browserify-simple - A simple Browserify + vueify setup for quick prototyping.
★ pwa - PWA template for vue-cli based on the webpack template
★ simple - The simplest possible Vue setup in a single HTML file
★ webpack - A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
★ webpack-simple - A simple Webpack + vue-loader setup for quick prototyping.

compustretch@instance-1:~/vuetest$ vue help init

Unknown command help.

vue-[object Object](1) does not exist, try --help

compustretch@instance-1:~/vuetest$ vue --version
2.9.4
compustretch@instance-1:~/vuetest$


Hoping someone has an inkling why this is happening, as I've been banging my head on this and there's nothing in search results at all.










share|improve this question























  • I have the same issue in windows, it seems vue 2.9.4 is a mistake

    – Ivan
    May 31 '18 at 7:04











  • Same issue on macOS 10.13.4

    – widyakumara
    May 31 '18 at 11:56











  • got the same issue on macOS

    – vishwaraj
    May 31 '18 at 17:55














1












1








1








Using Vue 2.9.4 on Ubuntu 18.04, all commands return the error "Unknown command"



compustretch@instance-1:~/vuetest$ vue init webpack testapp

Unknown command init.

vue-cli · Failed to download repo vuejs-templates/[object Object]: Response code 404 (Not Found)

compustretch@instance-1:~/vuetest$ vue list

Unknown command list.

Available official templates:

★ browserify - A full-featured Browserify + vueify setup with hot-reload, linting & unit testing.
★ browserify-simple - A simple Browserify + vueify setup for quick prototyping.
★ pwa - PWA template for vue-cli based on the webpack template
★ simple - The simplest possible Vue setup in a single HTML file
★ webpack - A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
★ webpack-simple - A simple Webpack + vue-loader setup for quick prototyping.

compustretch@instance-1:~/vuetest$ vue help init

Unknown command help.

vue-[object Object](1) does not exist, try --help

compustretch@instance-1:~/vuetest$ vue --version
2.9.4
compustretch@instance-1:~/vuetest$


Hoping someone has an inkling why this is happening, as I've been banging my head on this and there's nothing in search results at all.










share|improve this question














Using Vue 2.9.4 on Ubuntu 18.04, all commands return the error "Unknown command"



compustretch@instance-1:~/vuetest$ vue init webpack testapp

Unknown command init.

vue-cli · Failed to download repo vuejs-templates/[object Object]: Response code 404 (Not Found)

compustretch@instance-1:~/vuetest$ vue list

Unknown command list.

Available official templates:

★ browserify - A full-featured Browserify + vueify setup with hot-reload, linting & unit testing.
★ browserify-simple - A simple Browserify + vueify setup for quick prototyping.
★ pwa - PWA template for vue-cli based on the webpack template
★ simple - The simplest possible Vue setup in a single HTML file
★ webpack - A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
★ webpack-simple - A simple Webpack + vue-loader setup for quick prototyping.

compustretch@instance-1:~/vuetest$ vue help init

Unknown command help.

vue-[object Object](1) does not exist, try --help

compustretch@instance-1:~/vuetest$ vue --version
2.9.4
compustretch@instance-1:~/vuetest$


Hoping someone has an inkling why this is happening, as I've been banging my head on this and there's nothing in search results at all.







ubuntu vue.js






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 31 '18 at 6:39









CompustretchCompustretch

508




508













  • I have the same issue in windows, it seems vue 2.9.4 is a mistake

    – Ivan
    May 31 '18 at 7:04











  • Same issue on macOS 10.13.4

    – widyakumara
    May 31 '18 at 11:56











  • got the same issue on macOS

    – vishwaraj
    May 31 '18 at 17:55



















  • I have the same issue in windows, it seems vue 2.9.4 is a mistake

    – Ivan
    May 31 '18 at 7:04











  • Same issue on macOS 10.13.4

    – widyakumara
    May 31 '18 at 11:56











  • got the same issue on macOS

    – vishwaraj
    May 31 '18 at 17:55

















I have the same issue in windows, it seems vue 2.9.4 is a mistake

– Ivan
May 31 '18 at 7:04





I have the same issue in windows, it seems vue 2.9.4 is a mistake

– Ivan
May 31 '18 at 7:04













Same issue on macOS 10.13.4

– widyakumara
May 31 '18 at 11:56





Same issue on macOS 10.13.4

– widyakumara
May 31 '18 at 11:56













got the same issue on macOS

– vishwaraj
May 31 '18 at 17:55





got the same issue on macOS

– vishwaraj
May 31 '18 at 17:55












2 Answers
2






active

oldest

votes


















7














You need to uninstall with this command npm uninstall -g vue-cli



Then install with v3 with following command npm install -g @vue/cli (not sure why they f****d up with current 2.9.4 version)



Also they will require you to install extra stuffs like init, list, etc. after



UPDATE:



Forget about npm install -g @vue/cli because it's still beta and it gives you a lot of problems when you work with other libraries like nuxt.



I recommend you to try this command npm install -g vue-cli@2.9.3 it will save you a lot of headcaches.






share|improve this answer





















  • 1





    vue-cli@2.9.3 works like a charm. on the side note @Ivan you forgot the -g flag

    – widyakumara
    May 31 '18 at 11:57











  • pinning 2.9.3 works fine. wtf happened to 2.9.4‽ And beta seems to be a somewhat generous designation for the current state of v3, imo.

    – Compustretch
    Jun 1 '18 at 22:06



















0














I solved mine with this solution:




  1. Uninstall previous version npm uninstall -g vue-cli

  2. Install vue globally npm install -g @vue/cli-init






share|improve this answer
























  • props to you for not running into a whole nest of other issues in v3.

    – Compustretch
    Jun 1 '18 at 22:08











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50618143%2fall-vue-commands-return-unknown-command%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









7














You need to uninstall with this command npm uninstall -g vue-cli



Then install with v3 with following command npm install -g @vue/cli (not sure why they f****d up with current 2.9.4 version)



Also they will require you to install extra stuffs like init, list, etc. after



UPDATE:



Forget about npm install -g @vue/cli because it's still beta and it gives you a lot of problems when you work with other libraries like nuxt.



I recommend you to try this command npm install -g vue-cli@2.9.3 it will save you a lot of headcaches.






share|improve this answer





















  • 1





    vue-cli@2.9.3 works like a charm. on the side note @Ivan you forgot the -g flag

    – widyakumara
    May 31 '18 at 11:57











  • pinning 2.9.3 works fine. wtf happened to 2.9.4‽ And beta seems to be a somewhat generous designation for the current state of v3, imo.

    – Compustretch
    Jun 1 '18 at 22:06
















7














You need to uninstall with this command npm uninstall -g vue-cli



Then install with v3 with following command npm install -g @vue/cli (not sure why they f****d up with current 2.9.4 version)



Also they will require you to install extra stuffs like init, list, etc. after



UPDATE:



Forget about npm install -g @vue/cli because it's still beta and it gives you a lot of problems when you work with other libraries like nuxt.



I recommend you to try this command npm install -g vue-cli@2.9.3 it will save you a lot of headcaches.






share|improve this answer





















  • 1





    vue-cli@2.9.3 works like a charm. on the side note @Ivan you forgot the -g flag

    – widyakumara
    May 31 '18 at 11:57











  • pinning 2.9.3 works fine. wtf happened to 2.9.4‽ And beta seems to be a somewhat generous designation for the current state of v3, imo.

    – Compustretch
    Jun 1 '18 at 22:06














7












7








7







You need to uninstall with this command npm uninstall -g vue-cli



Then install with v3 with following command npm install -g @vue/cli (not sure why they f****d up with current 2.9.4 version)



Also they will require you to install extra stuffs like init, list, etc. after



UPDATE:



Forget about npm install -g @vue/cli because it's still beta and it gives you a lot of problems when you work with other libraries like nuxt.



I recommend you to try this command npm install -g vue-cli@2.9.3 it will save you a lot of headcaches.






share|improve this answer















You need to uninstall with this command npm uninstall -g vue-cli



Then install with v3 with following command npm install -g @vue/cli (not sure why they f****d up with current 2.9.4 version)



Also they will require you to install extra stuffs like init, list, etc. after



UPDATE:



Forget about npm install -g @vue/cli because it's still beta and it gives you a lot of problems when you work with other libraries like nuxt.



I recommend you to try this command npm install -g vue-cli@2.9.3 it will save you a lot of headcaches.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 31 '18 at 19:53

























answered May 31 '18 at 7:15









IvanIvan

7071235




7071235








  • 1





    vue-cli@2.9.3 works like a charm. on the side note @Ivan you forgot the -g flag

    – widyakumara
    May 31 '18 at 11:57











  • pinning 2.9.3 works fine. wtf happened to 2.9.4‽ And beta seems to be a somewhat generous designation for the current state of v3, imo.

    – Compustretch
    Jun 1 '18 at 22:06














  • 1





    vue-cli@2.9.3 works like a charm. on the side note @Ivan you forgot the -g flag

    – widyakumara
    May 31 '18 at 11:57











  • pinning 2.9.3 works fine. wtf happened to 2.9.4‽ And beta seems to be a somewhat generous designation for the current state of v3, imo.

    – Compustretch
    Jun 1 '18 at 22:06








1




1





vue-cli@2.9.3 works like a charm. on the side note @Ivan you forgot the -g flag

– widyakumara
May 31 '18 at 11:57





vue-cli@2.9.3 works like a charm. on the side note @Ivan you forgot the -g flag

– widyakumara
May 31 '18 at 11:57













pinning 2.9.3 works fine. wtf happened to 2.9.4‽ And beta seems to be a somewhat generous designation for the current state of v3, imo.

– Compustretch
Jun 1 '18 at 22:06





pinning 2.9.3 works fine. wtf happened to 2.9.4‽ And beta seems to be a somewhat generous designation for the current state of v3, imo.

– Compustretch
Jun 1 '18 at 22:06













0














I solved mine with this solution:




  1. Uninstall previous version npm uninstall -g vue-cli

  2. Install vue globally npm install -g @vue/cli-init






share|improve this answer
























  • props to you for not running into a whole nest of other issues in v3.

    – Compustretch
    Jun 1 '18 at 22:08
















0














I solved mine with this solution:




  1. Uninstall previous version npm uninstall -g vue-cli

  2. Install vue globally npm install -g @vue/cli-init






share|improve this answer
























  • props to you for not running into a whole nest of other issues in v3.

    – Compustretch
    Jun 1 '18 at 22:08














0












0








0







I solved mine with this solution:




  1. Uninstall previous version npm uninstall -g vue-cli

  2. Install vue globally npm install -g @vue/cli-init






share|improve this answer













I solved mine with this solution:




  1. Uninstall previous version npm uninstall -g vue-cli

  2. Install vue globally npm install -g @vue/cli-init







share|improve this answer












share|improve this answer



share|improve this answer










answered May 31 '18 at 18:00









vishwarajvishwaraj

33924




33924













  • props to you for not running into a whole nest of other issues in v3.

    – Compustretch
    Jun 1 '18 at 22:08



















  • props to you for not running into a whole nest of other issues in v3.

    – Compustretch
    Jun 1 '18 at 22:08

















props to you for not running into a whole nest of other issues in v3.

– Compustretch
Jun 1 '18 at 22:08





props to you for not running into a whole nest of other issues in v3.

– Compustretch
Jun 1 '18 at 22:08


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50618143%2fall-vue-commands-return-unknown-command%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

Npm cannot find a required file even through it is in the searched directory

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith