在用webstorm创建React项目时发现一个巨离谱的错误

(node:15528) ExperimentalWarning: The fs.promises API is experimental
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...(node:21848) ExperimentalWarning: The fs.promises API is experimental
npm ERR! code 1
npm ERR! path E:\Node1\untitled5\node_modules\fibers
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
npm ERR! gyp ERR! find Python checking if "python3" can be used
npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
npm ERR! gyp ERR! find Python checking if "python" can be used
npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
npm ERR! gyp ERR! find Python checking if "python2" can be used
npm ERR! gyp ERR! find Python - "python2" is not in PATH or produced an error
npm ERR! gyp ERR! find Python checking if Python is C:\Python37\python.exe
npm ERR! gyp ERR! find Python - "C:\Python37\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Python27\python.exe
npm ERR! gyp ERR! find Python - "C:\Python27\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if the py launcher can be used to find Python
npm ERR! gyp ERR! find Python - "py.exe" is not in PATH or produced an error
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python You need to install the latest version of Python.
npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
npm ERR! gyp ERR! find Python you can try one of the following options:
npm ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
npm ERR! gyp ERR! find Python   (accepted by both node-gyp and npm)
npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
npm ERR! gyp ERR! find Python   npm config set python "C:\Path\To\python.exe"
npm ERR! gyp ERR! find Python For more information consult the documentation at:
npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
npm ERR! gyp ERR! stack     at PythonFinder.fail (E:\Node1\untitled5\node_modules\node-gyp\lib\find-python.js:302:47)
npm ERR! gyp ERR! stack     at PythonFinder.runChecks (E:\Node1\untitled5\node_modules\node-gyp\lib\find-python.js:136:21)
npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (E:\Node1\untitled5\node_modules\node-gyp\lib\find-python.js:200:18)
npm ERR! gyp ERR! stack     at PythonFinder.execFileCallback (E:\Node1\untitled5\node_modules\node-gyp\lib\find-python.js:266:16)
npm ERR! gyp ERR! stack     at exithandler (child_process.js:301:5)
npm ERR! gyp ERR! stack     at ChildProcess.errorhandler (child_process.js:313:5)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
npm ERR! gyp ERR! stack     at onErrorNT (internal/child_process.js:415:16)
npm ERR! gyp ERR! stack     at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "E:\\Node1\\untitled5\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd E:\Node1\untitled5\node_modules\fibers
npm ERR! gyp ERR! node -v v10.16.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not oknpm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Yun\AppData\Local\npm-cache\_logs\2021-08-24T09_47_49_271Z-debug.logAborting installation.npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.Deleting generated file... package.json
Done.
Done

非常离谱的错误,导致无法React项目无法创建成功,反复试了几次都是如此给我整吐了。。。。网上搜了很多资料输入各种指令下载各种npm包试图修复,试了各种方法最终都无济于事,啊啊啊啊啊啊啊啊啊快疯了,就差卸载重装了,最后在查找各路解决方案后发现了这个万恶之源!!!

在C盘User找到 .npmrc 文件
然后 狠狠删掉!

这个文件是系统默认隐藏的文件需要显示后查看

React项目创建报错解决方案npm ERR! code 1 npm ERR! path E:\Node1\untitled5\node_modules\fibers npm ERR! command相关推荐

  1. react项目启动报错”无法使用 JSX,除非提供了 “--jsx“ 标志。ts(17004)“

    react项目启动报错"无法使用 JSX,除非提供了 "–jsx" 标志.ts(17004)" 原因 由于react版本与ts版本不匹配导致 解决 tsconf ...

  2. Eclipse导入Web项目代码报错解决方案

    Eclipse导入Web项目代码报错解决方案 我相信很多人在开发中导入别人的项目时,Web项目导入Eclipse中项目出现报错(左上角有红叉).开发环境:J2EE5+JDK8,IDE使用Eclipse ...

  3. Vue基础Day_01学习+Vue项目创建报错(true` in `“vueCompilerOptions“` property)解决方案

    Vue_Study01 1.Vue是什么? 1.1-Vue怎么学 Vue是在工程化的环境下进行学习的 1.2-Vue开发方式 1.3-Vue脚手架项目创建 目录 1.x-创建工程文件报错解决方案 注意 ...

  4. Ecplise基于Maven创建springboot项目基础-项目创建报错分析

    1.工具:Ecplise 2.jdk 3.下载maven 下载地址:https://maven.apache.org/ 将下载文件解压在任意一个空文件夹内,项目文件结构如图(小编是下载maven3.3 ...

  5. react项目启动报错Plugin “react“ was conflicted

    Plugin "react" was conflicted between "package.json » eslint-config-react-app » D:\d我 ...

  6. SpringCloud微服务项目启动报错解决方案

    报错代码 2022-02-28 10:48:26.354 INFO 5608 --- [ main] com.lsy.NacosConfigApplication : Starting NacosCo ...

  7. 解决react项目启动报错:error Couldn't find a package.json

    初始化react平台启动时:yarn start error Couldn't find a package.json file in "F:\\JavaScript\\REACT" ...

  8. Vue项目启动报错解决方案

    废话不多说,上解决方案 Step1:npm cache clean --force Step2:rm -rf node_modules Step3:rm -rf package-lock.json S ...

  9. 社区版IDEA创建SpringBoot项目及报错Error: Request failed with status code 404解决

    社区版IDEA创建SpringBoot项目 IDEA创建由于社区版没有创建SpringBoot的工具,我们一般使用插件进行创建 搜索插件spring assistant 进行下载 下载后我们进行项目创 ...

最新文章

  1. phpc.sinaapp.com 加密的解密方法
  2. 深度解析 H.265 视频解决方案
  3. SQLITE中原子提交的实现
  4. IDEA运行VUE项目
  5. LPSTR与char*的转换
  6. 新手小白零基础搭建个人博客(三)部署篇
  7. 最大公约数最小公倍数
  8. html如何做卷展菜单,3DMax“对象属性”卷展栏如何操作?有啥秘诀呢?
  9. Robust Quasistatic Finite Elements and Flesh Simulation
  10. react中IOS手机里面两个input同时存在时,聚焦focus失效解决办法
  11. 2009年北京第一场雪
  12. 与i7性能相当的服务器cpu,i7 8086K相当于什么 CPU天梯图秒懂i7-8086K性能
  13. 2020 cr节目源_直播源2020-10-10
  14. OpenJudge NOI题库 116题
  15. HDU 2079 (母函数)
  16. 毕业3年,从滴滴实习到阿里P7,我整理的超全学习指南
  17. Python 多变量赋值实现“交换”
  18. Firefox(火狐浏览器)常见插件应用
  19. 橙色的商务企业网站模板 html整站下载 企业网站模板
  20. Loner_li 机试题 将数字 例如12345.7895”,用程序实现显示壹万贰仟叁佰肆拾伍圆柒角玖分的方式

热门文章

  1. 6种穷人思维必须警惕
  2. 独享ip和共享ip的区别
  3. 企业在线ERP系统与内控控制因素管理
  4. matlab电流可逆斩波电路,电流可逆斩波电路.PPT
  5. 七麦数据analysis参数算法还原
  6. 使用pandas分析1976年至2010年的美国大选
  7. tkinter 出现两个窗口 tk(未响应) 解决方法
  8. 一款用autoit3写的小游戏,大家娱乐下
  9. 企业微信对接网易七鱼机器人
  10. 腾讯首席科学家-张正友:AI加速破解生命科学的重要问题