1,新搭建的环境,node版本,npm版本,Vue-cli版本,webpack版本都应该是最新的,具体版本号如下:

2,之后npm i就报错如下:
npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/sohee-lee7/Squire.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
3,解决方法:

安装git,但是git官网的下载速度特别特别慢,这里为你提供一个下载速度快的安装包,和官网是一样的正版,亲测有效,附上网址链接: link,选择你需要的版本。安装完git之后,再npm i一下看看可行,虽然不知道git好人npm是什么关系,但是真的就不报那样的错了

4,但是新的错误又出现了,错误如下:
gyp ERR! stack Error: Can't find Python executable "python"   you can set the PYTHON env variable.
gyp ERR! stack         at failNoPython (C:\Users\guxuelong\Desktop\dragon-ui\node_modules\.npminstall\node-gyp\3.3.1\node-gyp\lib\configure.js:401:14)
gyp ERR! stack         at C:\Users\guxuelong\Desktop\dragon-ui\node_modules\.npminstall\node-gyp\3.3.1\node-gyp\lib\configure.js:356:11
gyp ERR! stack         at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\javadev1\\Desktop\\dragon-ui\\node_modules\\.npminstall\\node-gyp\\3.3.1\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\Javadev1\\Desktop\\dragon-ui\\node_modules\\.npminstall\\fsevents\\1.0.11\\fsevents\\lib\\binding\\Release\\node-v47-win32-x64\\fse.node" "--module_name=fse" "--module_path=C:\\Users\\javadev1\\Desktop\\dragon-ui\\node_modules\\.npminstall\\fsevents\\1.0.11\\fsevents\\lib\\binding\\Release\\node-v47-win32-x64"
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v12.13.1
gyp ERR! not o
5,说是什么缺少python,难就安装一个python吧,解决方法:

运行以下命令:

npm install --python=python2.7
npm config set python python2.7

再npm i一下,再运行npm run dev / npm run serve 即可解决

记一次找错记录!!!!!!!!!!!

npm i报错 npm ERR! path git npm ERR! code ENOENT npm,后续npm i继续报错gyp ERR! node -v v12.13.1相关推荐

  1. npm i安装包依赖时 gyp ERR! stack Error: Can‘t find Python executable “python“, you can set the PYTHON env

    报错内容 gyp verb ensuring that file exists: C:\Python27\python.exe gyp ERR! configure error gyp ERR! st ...

  2. 【环境篇 npm 报错】npm ERR gyp ERR stack import sys; print “%s.%s.%s“ % sys.version_info[:3];

    问题描述 npm ERR! code 1 npm ERR! path D:\user\Desktop\NiSown\node_modules\node-sass npm ERR! command fa ...

  3. 奇葩问题☞ npm install 报错 gyp ERR

    gyp ERR! node -v v16.13.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok 直接看图吧,咱也是第一次遇见这种错误,怎么办!!! 于是百度 ...

  4. 奇葩问题 npm install 报错 gyp ERR

    gyp ERR! node -v v16.13.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok 直接看图吧,咱也是第一次遇见这种错误,怎么办!!! 于是百度 ...

  5. error gyp ERR! stack Error: Could not find any Visual Studio installation to use

    今天安裝 npx create-react-app my-app 报错. 其他报错的方法这里就不讲了,其他好多站都有解决办法,这里把没有提到过的说下. 报错信息 gyp ERR! find VS gy ...

  6. gyp ERR find Python 解决方案

    命令行报错如下 E:\vue-admin\node_modules\fibers>if not defined npm_config_node_gyp (node "D:\nodejs ...

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

    在用webstorm创建React项目时发现一个巨离谱的错误 (node:15528) ExperimentalWarning: The fs.promises API is experimental ...

  8. npm install node-sass的时候报错ERR gyp ERR C++

    今天在项目里执行npm i命令的是后报错一大片,搜了很多文章,都没有到点上.突然灵感一闪,可能是电脑上没有c++编译环境的问题. 但是是我在电脑上运行c文件是正常的. 搜到一篇文章里写的情况是这样的: ...

  9. npm install 报错 ERR! gyp ERR! cwd D:\workspace\node_modules\node-sass错误解决/npm ERR! gyp verb `which

    一.问题描述: npm install 报错 ERR! gyp ERR! cwd D:\workspace\node_modules\node-sass 二.可能原因 nodejs与sass版本不匹配 ...

最新文章

  1. android 定位信息存哪,安卓手机便签系统存储位置在哪
  2. ubuntu18.04安装gcc7.3.0g++7.3.0
  3. 6个信号提醒是时候跳槽了 CIO务必get到
  4. 【剑指offer】面试题10- I:斐波那契数列(Java)
  5. Replace Temp with Query(以查询取代临时变量)
  6. fir滤波器matlab实现_关于FIRamp;IIR系统的算法说明以及结果验证(1)
  7. Python3 正则相关
  8. 教你用电脑从 Google Play 下载 Android 程序 apk 文件
  9. 设计模式(行为型模式)——模板方法模式(Template Method)
  10. torch.sort()
  11. visio给图片添加任意形状外框
  12. visio输出论文用矢量图
  13. Java、JSP房产中介房屋信息管理系统
  14. cdr多页面排版_CDR排版须掌握三大功能 值得收藏
  15. 利用iTextsharp进行PDF页码旋转
  16. 五大学科竞赛(三)-o2 -lm编译选项
  17. 教你如何赚你的第一桶金 - 2048(包括源代码)
  18. Simulink —— Manual Switch的使用
  19. 推荐 25 个优雅的 jQuery Tooltip 插件
  20. Python3 使用PIL/Pillow库将图片转换为txt文字云

热门文章

  1. (Windows)anaconda安装Labelme并标注自己的数据集+数据集文件准备
  2. 达梦数据库同Druid连接配置及常见问题
  3. DNW for CentOS7
  4. 爬虫爬取最好大学排名
  5. HX711使用教程-数字电子秤常用芯片
  6. 等参元八节点matlab,平面四边形八节点等参元matlab程序.docx
  7. 分布式存储系统中的数据高效缓存方法
  8. 阿里巴巴之孕育、裂变及归因
  9. 博客园设置代码复制按钮
  10. make后gcc出现不全_基于gcc的安卓手机、树莓派4B、Surface Go性能测试