【react项目安装问题】报错gyp ERR! find Python
文章目录
描述:npm install之后报错:gyp ERR! find Python

原因:
电脑未安装python环境
解决方法:
方法一:管理员权限打开cmd执行指令
npm install --global --production windows-build-tools

方法二:去python官网上下载安装
python官网:https://www.python.org/downlo...
最后:
将之前安装的node_modules目录内容删除,重新安装依赖包
npm install
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论