I
I
Insanus2021-02-24 00:37:28
npm
Insanus, 2021-02-24 00:37:28

How to solve npm ERR! error?

error code

npm ERR! code EEXIST
npm ERR! syscall open
npm ERR! path C:\Users\Сергей\AppData\Roaming\npm-cache\_locks\staging-8e864196fa38aa96.lock
npm ERR! errno -4075
npm ERR! EEXIST: file already exists, open 'C:\Users\Сергей\AppData\Roaming\npm-cache\_locks\staging-8e864196fa38aa96.lock'
npm ERR! File exists: C:\Users\Сергей\AppData\Roaming\npm-cache\_locks\staging-8e864196fa38aa96.lock
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\Сергей\AppData\Roaming\npm-cache\_logs\2021-02-23T18_18_07_018Z-debug.log


tried to use the following solutions
rebooted the pc
npm install uglify-js --save-dev
npm cache clean --force
npm i npm -g


I don't know if this is necessary or not, I only use gulp. Node I do not touch.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Insanus, 2021-02-24
@Insanus

Everything was solved by recreating the project. Moreover, all the files created, in the wrong project, were transferred to a new one and all the rules.

A
Alexander, 2021-02-24
@Aleksandr-JS-Developer

Before installing, see if you have already installed the package.
Specifically, in your case, npm itself logged you the message file already exists . And advised you to Remove the existing file and try again .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question