Home > Blockchain >  Problem installing vue-cli with empty project
Problem installing vue-cli with empty project

Time:09-24

Created an empty project and tried to install vue-cli using the command npm install -g @vue/cli.
Then I received the following errors and comments from the interpreter:

npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated @hapi/[email protected]: joi is leaving the @hapi organization and moving back to 'joi' (https://github.com/sideway/joi/issues/2411)
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 @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]: this library is no longer supported
npm WARN deprecated [email protected]: The functionality provided by the `apollo-cache-control` package is built in to `apollo-server-core` starting with Apollo Server 3. See https://www.apollographql.com/docs
/apollo-server/migration/#cachecontrol for details.
npm WARN deprecated [email protected]: The `apollo-tracing` package is no longer part of Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#tracing for details
npm WARN deprecated [email protected]: The `graphql-extensions` API has been removed from Apollo Server 3. Use the plugin API instead: https://www.apollographql.com/docs/apollo-server/integrations/plugins/
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm ERR! code EEXIST
npm ERR! path C:\Users\yamar\AppData\Roaming\npm\node_modules\@vue\cli\bin\vue.js
npm ERR! dest C:\Users\yamar\AppData\Roaming\npm\vue.cmd
npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\yamar\AppData\Roaming\npm\node_modules\@vue\cli\bin\vue.js' -> 'C:\Users\yamar\AppData\Roaming\npm\vue.cmd'
npm ERR! File exists: C:\Users\yamar\AppData\Roaming\npm\vue.cmd
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\yamar\AppData\Roaming\npm-cache\_logs\2021-09-23T08_16_52_330Z-debug.log

Question:
How to fix this problem and install correctly vue-cli?
P.S. The solutions found in open sources did not help.
Platform windows-10 pro, node v14.16.0

CodePudding user response:

It looks like you have the wrong version of NPM installed; it appears to be incompatible.

See related post here

In my experience, best to manage node versions through nvm

  • Related