简体   繁体   English

错误:EPERM:不允许操作,安装 create-react-app 时 mkdir 'C:\Users\...''

[英]Error: EPERM: operation not permitted, mkdir 'C:\Users\…'' when installing create-react-app

CMD Image , and I also tried to open cmd and run as administrator, still same result as follows: CMD Image ,我也尝试打开 cmd 并以管理员身份运行,仍然相同的结果如下:

I keyed in我键入

npx create-react-app my-app
cd my-app

when i entered npm start当我进入npm start

I have this error:我有这个错误:

C:\Users\Hoi Yee\my-app>npm start

Error: EINVAL: invalid argument, mkdir 'C:\Users\Hoi Yee\my-app\'C:\Users\User\AppData\Roaming\npm''
Error: EINVAL: invalid argument, mkdir 'C:\Users\Hoi Yee\my-app\'C:\Users\User\AppData\Roaming\npm''

C:\Users\Hoi Yee\my-app>

how should I install create-react-app on window 10?我应该如何在 window 10 上安装 create-react-app?

half way downloading中途下载

npx create-react-app my-app npx 创建反应应用程序我的应用程序

there is error.有错误。 like this:像这样:

58 packages are looking for funding run npm fund for details 58包正在寻找资金跑npm fund详情

found 1 low severity vulnerability run npm audit fix to fix them, or npm audit for details发现 1 个低严重性漏洞运行npm audit fix以修复它们,或npm audit以获取详细信息

but I can not enter npm audit fix但我无法进入 npm 审计修复

the whole thing is stationary, so I quit.整个事情是静止的,所以我退出了。

I close cmd and open again, also tried run as admin.我关闭 cmd 并再次打开,也尝试以管理员身份运行。

I entered:我进入了:

cd my-app cd 我的应用程序

npm start npm启动

I got this: enter image description here我明白了:在此处输入图像描述

C:\Users\Hoiyee>cd my-app C:\Users\Hoiyee>cd my-app

C:\Users\Hoiyee\my-app>npm start npm ERR: code ENOENT npm ERR. C:\Users\Hoiyee\my-app>npm start npm ERR:代码 ENOENT npm ERR。 syscall open npm ERR: path C,\Users\Hoiyee\my-app\package:json npm ERR. E 系统调用打开 npm ERR:路径 C,\Users\Hoiyee\my-app\package:jsonDFDCBB30E8542AB4429B errno -4058 npm ERR.错误号 -4058 npm 错误。 enoent ENOENT: no such file or directory, open 'C:\Users\Hoiyee\my-app\package.json' npm ERR! enoent ENOENT:没有这样的文件或目录,打开 'C:\Users\Hoiyee\my-app\package.json' npm ERR! enoent This is related to npm not being able to find a file. enoent 这与 npm 找不到文件有关。 npm ERR! npm 错误! enoent恩恩

npm ERR: A complete log of this run can be found in: npm ERR. npm ERR:此运行的完整日志可在以下位置找到:npm ERR。 C:\Users\Hoiyee\AppData\Roaming\npm-cache_logs\2020-05-08T15_16_50_767Z-debug.log C:\Users\Hoiyee\AppData\Roaming\npm-cache_logs\2020-05-08T15_16_50_767Z-debug.log

C:\Users\Hoiyee\my-app> C:\Users\Hoiyee\my-app>

I check that I only have these files inside my-app: node_modules我检查我的应用程序中是否只有这些文件:node_modules

package.json package.json

package-lock.json封装锁.json

what should I do?我应该怎么办?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM