After creating an empty project, I attempted to install vue-cli
using the command npm install -g @vue/cli
. However, during the installation process, I encountered the following errors and warnings 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!
...
// Other deprecation warnings
...
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 can I resolve these issues and successfully install vue-cli?
P.S. Existing solutions from publicly available sources have not provided a fix.
Platform used: windows-10 pro
, node v14.16.0