L
L
lorentso2021-07-20 13:53:22
Vue.js
lorentso, 2021-07-20 13:53:22

Why are there problems installing vue-cli?

Strange, but for some reason I can't install vue-cli. Terminal throws an error

PS C:\Users\Skwo\Desktop\vue.new.project> npm i @vue/cli
Нераспознанный токен в исходном тексте.
строка:1 знак:7
+ npm i  <<<< @vue/cli
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnrecognizedToken
 
PS C:\Users\Skwo\Desktop\vue.new.project> npm install -g @vue/cli
Нераспознанный токен в исходном тексте.
строка:1 знак:16
+ npm install -g  <<<< @vue/cli
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnrecognizedToken


Such responses to different attempts.
I checked if the packages are installed globally, it may need to be reinstalled.
Vue didn't find any packages..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lorentso, 2021-07-22
@lorentso

the problem turned out to be that you need to quote: @vue/cli , that is - "@vue/cli"
ps
it is not clear why such a problem, and why developers do not write about it and how to solve it, why you need to look for an answer to overflow

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question