Nishanth R
Nishanth R

Reputation: 38

Why do i get vue-cli errors while setting up a new project

I have npm installed v6.9.0 ,node v10.16.0 & yarn v1.16.0 on my Ubuntu 18.04LTS.

I'm following this tutorial.tutorial link

While I'm initially setting up the Vue app in my directory vuetest and bootstrapping the app using vue-cli, i ran these commands:

yarn global add vue-cli

vue init webpack <webpack_name>

Vue init hanged at project description and this was a issue in github where they posted a temporary solution. temporary solution link

In the solution they said to run these commands:

1.cd "$(dirname $(which vue))/node_modules/@vue/cli-init"

2.npm i inquirer@~6.3.1

When i ran the first command i get error:

bash: cd: /home/nishanthr/.yarn/bin/node_modules/@vue/cli-init: No such file or directory

Output of which vue is:

/home/nishanthr/.yarn/bin/vue

Can someone tell me what's wrong and what's happening here ?

Upvotes: 0

Views: 198

Answers (1)

Tnc Andrei
Tnc Andrei

Reputation: 1012

You should use the new version yarn global add @vue/cli Vue Cli

Upvotes: 1

Related Questions