A
A
Alexander Pankov2019-04-13 12:45:47
Node.js
Alexander Pankov, 2019-04-13 12:45:47

How to install vue-cli 3 version?

Hello. I found a lesson on vue-cli, here I go about it.
I want to install vue-cli exactly version 3 so that the create command is available,
this is what I do

npm install -g @vue/cli
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
/usr/local/lib/node_modules/node/bin/vue -> /usr/local/lib/node_modules/node/lib/node_modules/@vue/cli/bin/vue.js
npm WARN [email protected] requires a peer of [email protected]>=2.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] - 14.1.x but none is installed. You must install peer dependencies yourself.

+ @vue/[email protected]
updated 1 package in 7.725s

Everything seems to be ok, but when I type
vue --version
it drops out
2.9.6
, I can’t figure out how to install the 3rd version, I see that it’s not available https://www.npmjs.com/package/vue-cli
is current 2.9.6, but why does everyone have the 3rd version installed in toturials and how can I install it?
➜  ~ node -v
v11.13.0
➜  ~ npm -v
6.9.0

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Pankov, 2019-04-13
@PankovAlxndr

started the installation NOT through npm, but through yarn and everything worked

A
Andrey Khokhlov, 2019-04-13
@andrhohlov

Something lately no one wants to read the vue-cli doc...
https://cli.vuejs.org/guide/installation.html
5cb1b2a865967844221270.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question