gyp ERR find Python 解决方案【超详细图解】

在编译新前端项目时,遇到python3.11.7 no found

 

使用brew安装python 3 

brew install python3

接着使用最新node版本安装node-gyp

 

 

npm config set strict-ssl false
npm config set cafile ""
npm cache clean --force
npm install --force

再切换16.20.2版本的npm install即下载依赖成功,不会报错了 

 

相关推荐

  1. SQL详细

    2024-02-05 15:10:07       27 阅读
  2. 常见库存解决方案

    2024-02-05 15:10:07       35 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-05 15:10:07       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-05 15:10:07       101 阅读
  3. 在Django里面运行非项目文件

    2024-02-05 15:10:07       82 阅读
  4. Python语言-面向对象

    2024-02-05 15:10:07       91 阅读

热门阅读

  1. createvm

    2024-02-05 15:10:07       48 阅读
  2. rust ethers-rs 签名与solidity验证签名例子

    2024-02-05 15:10:07       44 阅读
  3. 力扣刷题-27.移除元素

    2024-02-05 15:10:07       52 阅读
  4. Ubuntu文件系统结构

    2024-02-05 15:10:07       54 阅读
  5. Rust个人学习之Rust国内镜像源

    2024-02-05 15:10:07       42 阅读
  6. 【MySQL】-10 MySQL 存储过程

    2024-02-05 15:10:07       39 阅读
  7. MySQL的存储过程

    2024-02-05 15:10:07       41 阅读
  8. mysql 删除分区表数据

    2024-02-05 15:10:07       50 阅读
  9. MVVM下的窗口关闭

    2024-02-05 15:10:07       51 阅读
  10. ChatGPT高效提问—基础知识(NLP)

    2024-02-05 15:10:07       50 阅读