npm ERR! gyp ERR! node -v v15.14.0 npm ERR! gyp ERR! node-gyp -v v3.8.0 npm ERR! gyp ERR! not ok
时间: 2023-08-26 17:17:59 浏览: 139
根据提供的引用内容,问题是关于npm报错的。根据引用的描述,npm报错的原因是由于找不到git文件导致的。解决方法可以参考引用和的建议。首先,可以尝试在Windows环境下设置一个名为`SASS_BINARY_SITE`的变量,将其值指向淘宝镜像地址,并执行`npm install node-sass`命令来解决node-sass的问题。另外,还可以尝试使用`npm install --global --production windows-build-tools`命令全局安装windows-build-tools来解决问题。这样做可能会解决npm报错的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [npm i报错 npm ERR! path git npm ERR! code ENOENT npm,后续npm i继续报错gyp ERR! node -v v12.13.1](https://blog.csdn.net/huihuiliu_/article/details/103362161)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [解决:npm install报错gyp ERR&! stack Error: Can‘t find Python executable python](https://blog.csdn.net/weixin_43965195/article/details/106311017)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [解决node-gyp安装vuetify编译失败gyp ERR问题](https://blog.csdn.net/qq_21567385/article/details/108307529)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文