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即下载依赖成功,不会报错了 

猜你喜欢

转载自blog.csdn.net/m0_73442728/article/details/136020899