当前位置: 首页 > 知识库问答 >
问题:

npm在初始化create react应用程序时显示错误

丰赞
2023-03-14

每当我运行npx-create-react-app时,我都会得到这个错误。/

节点:internal/modules/cjs/loader:927 throw err;^

错误:找不到模块'C:\users\siddhant mishra\appdata\roaming\npm\node_modules\npm\bin\npm-cli.js'在function.module._resolveFilename(node:internal/modules/cjs/loader:924:15)在function.module._load(node:internal/modules/cjs/loader:769:27)在function.module._load(node:internal/modules/cjs/loader:这可能需要几分钟。安装react、react-dom和react-scripts...

节点:internal/modules/cjs/loader:927 throw err;^

错误:找不到模块'C:\users\siddhant mishra\appdata\roaming\npm\node_modules\npm\bin\npm-cli.js'在function.module._resolveFilename(节点:internal/modules/cjs/loader:924:15)在function.module._load(节点:internal/modules/cjs/loader:769:27)在function.module._load(节点:internal/modules/cjs/loader:769:27)在

中止安装。npm安装--save-save-accreat--loglevel错误react react-dom react-scripts@0.9.x失败。

正在删除生成的文件。..package.json删除SID/from d:\work\courses节点:fs:928返回handleErrorFromBinding(ctx);^

错误:eBUSY:资源忙或锁,rmdir'd:\work\courses\side\sidhant mishra\appdata\roaming\npm\node_modules\create-react-app\node_modules\fs-extrat\lib\remove\rimraf.js:264:13)在object.rimrafsync[as removeSync](c:\users\siddhant mishra\appdata\roaming\npm\node_modules\create-reacted\appdata\roaming C:\users\siddhant mishra\appdata\roaming\npm\node_modules\create-react-app\create-actapp.js:567:14 at processTicksAndRejections(节点:internal/process/task_queues:94:5){errno:-4082,syscall:'rmdir',代码:'ebusy',路径:'d:\work\courses\sid'}

共有1个答案

幸弘光
2023-03-14

您可以尝试npx create-react-app、my-app(或者您想给您的app起什么名字)

 类似资料: