M
M
matros972020-12-20 09:25:26
Node.js
matros97, 2020-12-20 09:25:26

VueCLI installation error?

Hi, I'm trying to install VueCLI but npm gives errors

C:\Windows\system32>npm install -g @vue/cli
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected] : This version has been deprecated and is no longer supported or maintained
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using secure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues /3142
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'

changed 1371 packages, and audited 1371 packages in 2m

57 packages are looking for funding
run `npm fund` for details

found 0 vulnerabilities

PS D:\projects\VueJS> vue create my-project
vue : The name "vue" is not recognized as the name of a cmdlet, function, script file, or executable. Check the spelling of the name and the presence and correctness
of the path, then try again.
line:1 char:1
+ vue create my-project
+ ~~~
+ CategoryInfo : ObjectNotFound: (vue:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

How to fix it

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2020-12-20
@Seasle

Use cmd.

A
Alexey, 2020-12-20
@Azperin

There, by the way, back in 2017, they advised
setx /M path "%path%;%appdata%\npm"
Restart the console after execution, maybe it will work)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question