網(wǎng)站首頁 編程語言 正文
解決(gyp、python等問題):gyp ERR! find VS msvs_version not set from command line or npm config
作者:云邊的快樂貓 更新時間: 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)問題的原因
就是這個項目缺少很多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í)行這個命令自動檢測下載python、Visual Studio等等這些需要的東西。
npm install --g --production windows-build-tools
這個命令是用于在 Windows 操作系統(tǒng)上安裝
windows-build-tools
包,它是一個 Node.js 模塊,用于安裝和配置在 Windows 上構(gòu)建 Node.js 模塊所需的開發(fā)工具和依賴項?
下載完成后使用快捷鍵CTRL+C結(jié)束當(dāng)前的命令?
原文鏈接:https://blog.csdn.net/m0_52861000/article/details/132914900
- 上一篇:沒有了
- 下一篇:沒有了
相關(guān)推薦
- 2022-05-20 關(guān)于Mybatis-plus中PaginationInterceptor分頁攔截器過時問題解決辦法
- 2022-05-03 Docker?Desktop啟動失敗的解決(Docker?failed?to?initialize?
- 2022-12-08 C++中cout輸出中文信息亂碼問題及解決_C 語言
- 2023-07-18 List集合循環(huán)刪除特殊元素之六種方法(實踐)
- 2022-06-08 FreeRTOS實時操作系統(tǒng)多任務(wù)管理基礎(chǔ)知識_操作系統(tǒng)
- 2022-08-21 MariaDB的安裝與配置教程_mariadb
- 2022-10-11 app:transformClassesAndResourcesWithProguardForRel
- 2022-10-30 C++解析wav文件方法介紹_C 語言
- 欄目分類
-
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運算符,流程控制 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錯誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡單動態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支