错误代码
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
尝试使用以下解决方案重新启动电脑
npm install uglify-js --save-dev
npm cache clean --force
npm i npm -g
通过重新创建项目,一切都得到了解决。此外,在错误的项目中创建的所有文件都被转移到一个新的文件和所有规则中。