H
H
HamSter2020-10-13 08:51:04
Vue.js
HamSter, 2020-10-13 08:51:04

Installing vue/cli?

I'm trying to install vue / cli 3.

npm install -g @vue/cli

It seems to be installed, without errors.

Parameters:

win 10 (64)
ConeMu ( GitBash)

node 14.13.0
npm 6.14.8
vue 3.0.0

Then I try to create a project:

vue create my-project

But in the console there is an error:

C:\Users\{UserName}\AppData\Roaming\npm/node_modules/node/bin/node: line 1: This: command not found


I try:

npm cache clean --force
npm uninstall vue-cli -g and again npm install -g @vue/cli

But nothing helps.

When npm ls -g --depth=0outputs:

C:\Users\Asus\AppData\Roaming\npm
+-- @vue/[email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]

npm ERR! peer dep missing: [email protected], required by @vue/[email protected]


Through npx . I try again like this:

npx @vue/cli create my-project

The project is installed, but npm run buildit does not build the project and displays errors.

Question: How can I solve the problem so that it vue create my-project either vue ui works and the project is going to build?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex, 2020-10-18
@HamSter007

Answer in comment

Y
Yuri, 2020-10-13
@cheeroque

Well, it says that vue itself is not installed. Vue-CLI is a separate package, add vue.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question