網(wǎng)站首頁 編程語言 正文
解決(gyp、python等問題):gyp ERR! find VS msvs_version not set from command line or npm config
作者:云邊的快樂貓 更新時(shí)間: 2024-03-20 編程語言一、遇到問題
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
二、出現(xiàn)問題的原因
就是這個(gè)項(xiàng)目缺少很多node.js相關(guān)的開發(fā)工具和依賴,比如python、Visual Studio、gyp等等
三、解決辦法
1.先設(shè)置npm的源為國內(nèi)的淘寶鏡像源
npm config set registry https://registry.npm.taobao.org
?
2.執(zhí)行這個(gè)命令自動(dòng)檢測下載python、Visual Studio等等這些需要的東西。
npm install --g --production windows-build-tools
這個(gè)命令是用于在 Windows 操作系統(tǒng)上安裝
windows-build-tools
包,它是一個(gè) Node.js 模塊,用于安裝和配置在 Windows 上構(gòu)建 Node.js 模塊所需的開發(fā)工具和依賴項(xiàng)?
下載完成后使用快捷鍵CTRL+C結(jié)束當(dāng)前的命令?
原文鏈接:https://blog.csdn.net/m0_52861000/article/details/132914900
- 上一篇:沒有了
- 下一篇:沒有了
相關(guān)推薦
- 2022-04-26 python?logging多進(jìn)程多線程輸出到同一個(gè)日志文件的實(shí)戰(zhàn)案例_python
- 2022-09-24 pytorch使用nn.Moudle實(shí)現(xiàn)邏輯回歸_python
- 2023-01-08 C#實(shí)現(xiàn)屏幕抓圖并保存的示例代碼_C#教程
- 2022-07-12 linux中刪除指定文件以外的其它所有文件
- 2022-04-30 Python自定義指標(biāo)聚類實(shí)例代碼_python
- 2023-02-12 一文帶你了解Golang中reflect反射的常見錯(cuò)誤_Golang
- 2022-09-13 Nginx如何限制IP訪問只允許特定域名訪問_nginx
- 2022-11-20 .Net中Task?Parallel?Library的基本用法_基礎(chǔ)應(yīng)用
- 欄目分類
-
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲(chǔ)小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運(yùn)算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯(cuò)誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實(shí)現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡單動(dòng)態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支