【发布时间】:2022-10-18 21:23:01
【问题描述】:
在中创建一个新的 React 应用程序E:\Dokuman Visual Code\react.js\project-app.
安装软件包。这可能需要几分钟。 使用 cra-template 安装 react、react-dom 和 react-scripts...
npm ERR! code EBADF
npm ERR! EBADF: bad file descriptor, write
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\FIKCROS\AppData\Local\npm-cache\_logs\2022-04-05T01_02_39_053Z-debug-0.log
Aborting installation.
npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... package.json
Deleting project-app/ from E:\Dokuman Visual Code\react.js
Done.
【问题讨论】:
-
尝试使用 LTS 版本,它修复了我的问题。
-
希望这工作。
npm cache clean --force
标签: node.js reactjs react-native npm