EPERM 错误!!有什么办法可以解决我的 React 安装问题?

时间:2021-05-07 16:01:14

标签: node.js reactjs npm installation npx

以下是错误信息:

<块引用>
An unexpected error occurred: '*EPERM: operation not permitted, unlink 'F:\\N Programs\\my-react-app\\node_modules\\@babel\\helper-create-class-features-plugin\\node_modules\\@babel\\core\\node_modules\\.bin'".pkg...
npm ERR! code ENOTEMPTYe platform "win32" is incompatible with this module.
npm ERR! syscall rmdiris an optional dependency and failed compatibility check. Excluding it from installation.
npm ERR! path C:\Users\HP\AppData\Roaming\npm-cache\_npx\6868\node_modules\create-react-app\node_modules\tmp\node_modules
npm ERR! errno -40513" is an optional dependency and failed compatibility check. Excluding it from installation.
npm ERR! ENOTEMPTY: directory not empty, rmdir 'C:\Users\HP\AppData\Roaming\npm-cache\_npx\6868\node_modules\create-react-app\node_modules\tmp\node_modules'
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.20.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev ||
npm ERR! A complete log of this run can be found in: 3.7.0-dev || >= 3.7.0-beta".
npm ERR!     C:\Users\HP\AppData\Roaming\npm-cache\_logs\2021-05-07T13_47_19_223Z-debug.log/dom@>=7.21.4

我尝试过 npm cache clean --force 命令。

除此之外,我还尝试手动清除 npm-cache 文件夹中的 cookie。

还尝试在管理员模式下使用 ALT+F+S+A 进行安装。

重新安装node也试过几次了。但是下面的错误仍然存​​在:

<块引用>
'*EPERM: operation not permitted, unlink 'F:\\N Programs\\my-react-app\\node_modules\\@babel\\helper-create-class-features-plugin\\node_modules\\@babel\\core\\node_modules\\.bin'".pkg...*'

我认为主要问题是缓存正在从 C 驱动器获取,这就是它无法正常工作的原因。我在桌面上安装并运行了第一个 todo 应用程序,这就是为什么路径设置为 C 驱动器,但现在我使用 F 驱动器,它适用于 1 或 2 个项目,但现在我遇到了大麻烦。

0 个答案:

没有答案