V
V
Vladislav Verilov2021-07-27 19:46:58
Node.js
Vladislav Verilov, 2021-07-27 19:46:58

Problems with node js npm ncu, what to do?

Reinstalled node js and can't install ncu "npm install -g npm-check-updates"

PS D:\project\new_project> npm install -g npm-check-updates
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
C:\Users\inefa\AppData\Roaming\npm\ncu -> C:\Users\inefa\AppData\Roaming\npm\node_modules\npm-check-updates\bin\cli.js
npm ERR! code EEXIST
npm ERR! path C:\Users\inefa\AppData\Roaming\npm\node_modules\npm-check-updates\bin\cli.js
npm ERR! dest C:\Users\inefa\AppData\Roaming\npm\npm-check-updates
npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\inefa\AppData\Roaming\npm\node_modules\npm-check-updates\bin\cli.js' -> 'C:\Users\inefa\AppData\Roaming\npm\npm-check-updates'
npm ERR! File exists: C:\Users\inefa\AppData\Roaming\npm\npm-check-updates
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\inefa\AppData\Roaming\npm-cache\_logs\2021-07-27T16_42_10_781Z-debug.log

Same when using npm install
PS D:\project\new_project> npm i
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\glob-watcher\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

audited 1705 packages in 10.701s

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

found 12 vulnerabilities (1 low, 6 moderate, 5 high)
  run `npm audit fix` to fix them, or `npm audit` for details
PS D:\project\new_project>

What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Shvedov, 2021-07-27
@mmmaaak

It seems to be enough in Russian, albeit in English, in writing:

npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\inefa\AppData\Roaming\npm\node_modules\npm-check-updates\bin\cli.js' -> 'C:\Users\inefa\AppData\Roaming\npm\npm-check-updates'
npm ERR! File exists: C:\Users\inefa\AppData\Roaming\npm\npm-check-updates
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

translate and do what it asks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question