报错信息

npm ERR! code 1
npm ERR! path D:\My\StudyCode\vue-typescript-admin-template\node_modules\deasync
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node ./build.js
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.4.1
npm ERR! gyp info using node@16.14.2 | win32 | x64
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python checking Python explicitly set from command line or npm configuration
npm ERR! gyp ERR! find Python - "--python=" or "npm config get python" is "python2.7"
npm ERR! gyp ERR! find Python - "python2.7" is not in PATH or produced an error
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 Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python39\python.exe
npm ERR! gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe
npm ERR! gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python39-32\python.exe
npm ERR! gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe
npm ERR! gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python38\python.exe
npm ERR! gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe
npm ERR! gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\python.exe
npm ERR! gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe
npm ERR! gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python37\python.exe
npm ERR! gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37\python.exe
npm ERR! gyp ERR! find Python - "C:\Program Files\Python37\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\python.exe
npm ERR! gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37-32\python.exe
npm ERR! gyp ERR! find Python - "C:\Program Files\Python37-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python37-32\python.exe
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python37-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python36\python.exe
npm ERR! gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36\python.exe
npm ERR! gyp ERR! find Python - "C:\Program Files\Python36\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\python.exe
npm ERR! gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36-32\python.exe
npm ERR! gyp ERR! find Python - "C:\Program Files\Python36-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python36-32\python.exe
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python36-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if the py launcher can be used to find Python 3
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 (C:\Users\Administrator\AppData\Roaming\nvm\v16.14.2\node_modules\npm\node_modules\node-gyp\lib\find-python.js:330:47)
npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\Administrator\AppData\Roaming\nvm\v16.14.2\node_modules\npm\node_modules\node-gyp\lib\find-python.js:228:18)
npm ERR! gyp ERR! stack     at exithandler (node:child_process:406:5)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:526:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
npm ERR! gyp ERR! stack     at onErrorNT (node:internal/child_process:478:16)
npm ERR! gyp ERR! System Windows_NT 10.0.18363
e-gyp.js" "rebuild"                                                                                                                                                            e-gyp.js" "rebuild"
npm ERR! gyp ERR! node -v v16.14.2
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok
npm ERR! Build failednpm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Local\npm-cache\_logs\2022-12-16T07_51_14_042Z-debug-0.log

在网上找了许多方法,大部分是下载python,但是没啥用(试过了,至少对我没用)。
其实真正的问题是node版本不兼容,下载项目中需要的node版本就行。
如何知道自己的项目中匹配的是哪个node版本呢
1、package.json

"@types/node": "^14.14.37",

2、如何项目有用yarn,也可以查看yarn.lock

"@types/node@*", "@types/node@^14.14.37":version "14.14.41"

项目install的时候报错gyp ERR! find Python相关推荐

  1. npm install的时候报错 npm err code 1

    问题: 在编译vue的时候,npm install的时候报错 npm err code 1 解决: 使用' npm i -g npm ' 命令,然后再 npm install,npm run dev ...

  2. npm install的时候报错 npm err code 1

    在学习vue的时候,npm install的时候报错  npm err code 1,当时很郁闷,是'vue init webpack my-project'命令新建的模版项目 ,怎么会报错,第一次遇 ...

  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. Mac安装webpack报错gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1解决

    安装webpack ,报错提示 gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ER ...

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

    1,新搭建的环境,node版本,npm版本,Vue-cli版本,webpack版本都应该是最新的,具体版本号如下: 2,之后npm i就报错如下: npm ERR! path git npm ERR! ...

  7. npm install 安装包报错npm ERR! C:\Users\happl\AppData\Roaming\npm-cache_logs\2019-12-09T15_55_28_112Z-deb

    npm ERR! npm ERR! For more information, see: 有关详细信息,请参见 npm ERR! https://docs.npmjs.com/cli/install# ...

  8. 在Vue项目中出现的报错--------npm ERR code 1

    npm ERR! code 1 npm ERR! path x:\xxxx\node_modules\node-sass npm ERR! com 解决方法如下: 第一步:\color{#FF0000 ...

  9. npm install 报错 gyp info it worked if it ends with ok npm ERR! gyp verb cli [

    今天新启动一个项目,在 npm install 安装依赖项时出现报错. ERR! code 1 npm ERR! path C:\Users\Administrator\Desktop\14531\m ...

最新文章

  1. 小程序这件事 撸起袖子加油干
  2. mysql创建的是拉丁_将MySQL数据库从拉丁转换为UTF-8
  3. 网上读书关于软件测试,【读书笔记】之软件测试
  4. 论文html5的英文文献,html论文英文参考文献(优质论文108个).pdf
  5. 挑战iOS!小米全新OS发布:22款机型首发
  6. “Rule can only have one resource source”错误
  7. python中int什么意思_python中int是什么意思
  8. native service
  9. java网上订餐系统怎么做_基于Java的网上订餐系统
  10. Solidworks或CAD怎样输出高质量图片?
  11. 串口转以太网产品选型指南
  12. 卡特兰数(Catalan UVa 991 10303 10007 1478)[11]
  13. python实现抢票github_抢票神器成GitHub热榜第一,支持候补抢票,Python跑起来
  14. aws mysql 费用_AWS 免费一年套餐详解
  15. 动态模态分解 DMD | 做高维时间序列数据短时预测
  16. 深入理解C++中的循环引用问题及解决方法
  17. 根据文件模板实现预览、生成word、pdf、excel(后端-项目)
  18. 【办公-WORD】Word书法字贴默认密码,修改默认密码
  19. ubb html编辑器,UBB与HTML编辑器的区别
  20. 进制转换方法总结(详细图解)

热门文章

  1. AutoJs Pro 7.0.4-1 实战教程---史上最全抖音极速版
  2. Daiwa Securities Co. Ltd. Programming Contest 2022 Autumn (AtCoder Beginner Contest 277) A~C题详细讲解
  3. decode函数的几种用法详解
  4. 2023天猫运营数据分析:Q1防晒品类行业分析报告
  5. Windows 扩展 C 盘扩展卷按钮显示灰色怎么办
  6. Django Queryset用法
  7. win7桌面空白处右键弹出菜单很慢解决办法
  8. 关于囚徒问题的概率解释(
  9. 在阿里云上安装mysql后,无法远程登陆
  10. kickstart配置文件详解