Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems installing Vue js

Tags:

node.js

vue.js

I am trying to install vue.js with no success, yet npm is up to date.
When I run vue init webpack vueapp I get this error:

No command 'vue' found, did you mean:Command 'vpe' from package 'texlive-latex-extra' (universe)
vue: command not found

I have already installed the cli using npm install vue-cli.

Thanks

like image 500
skndungu Avatar asked Apr 12 '26 12:04

skndungu


2 Answers

Try to use npm install -g @vue/cli and then vue ui to start client in your browser.

like image 63
Eldin Z Avatar answered Apr 14 '26 01:04

Eldin Z


You'll want to use npm install -g @vue/cli. Restart your terminal to make sure it shows up.

Also, make sure you have node 8.9+

From the docs:

Warning regarding Previous Versions

The package name changed from vue-cli to @vue/cli. If you have the previous vue-cli (1.x or 2.x) package installed globally, you need to uninstall it first with npm uninstall vue-cli -g or yarn global remove vue-cli.

Node Version Requirement

Vue CLI requires Node.js version 8.9 or above (8.11.0+ recommended). You can manage multiple versions of Node on the same machine with nvm or nvm-windows.

like image 22
Dan Oswalt Avatar answered Apr 14 '26 02:04

Dan Oswalt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!