国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

npm install齊天大坑!??!gyp ERR! find VS msvs_version not set from command line or npm config

這篇具有很好參考價(jià)值的文章主要介紹了npm install齊天大坑?。?!gyp ERR! find VS msvs_version not set from command line or npm config。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

報(bào)錯(cuò)信息:


```bash
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS running in VS Command Prompt, installation path is:
gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017"
gyp ERR! find VS - will only use this version
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS looking for Visual Studio 2013
gyp ERR! find VS - not found
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
gyp ERR! stack     at VisualStudioFinder.fail (D:\rymcu\electron-serialport\node_modules\node-gyp\lib\find-visualstu
dio.js:121:47)
gyp ERR! stack     at D:\rymcu\electron-serialport\node_modules\node-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack     at D:\rymcu\electron-serialport\node_modules\node-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack     at D:\rymcu\electron-serialport\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack     at D:\rymcu\electron-serialport\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:310:5)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
gyp ERR! System Windows_NT 10.0.15063

解決辦法

1、卸載nodejs重新安裝一遍

2、設(shè)置淘寶鏡像 npm config set registry https://registry.npm.taobao.org

3、安裝nodejs所需的環(huán)境(Visual Studio XX、python什么鬼的),執(zhí)行這個(gè)命令會(huì)自動(dòng)檢測(cè)并幫你安裝好,npm install --g --production windows-build-tools
gyp err! find vs,npm,前端,node.js
4、關(guān)鍵所在?。?!執(zhí)行編譯時(shí)指定python版本,npm install --python=python2.7

由于我的電腦之前安裝過(guò)python3版本,并且設(shè)置了環(huán)境變量,所以npm install會(huì)找我默認(rèn)的python,所以執(zhí)行時(shí)指定nodejs只支持的python2版本。

然后,神奇的事情到了,我把編譯包modules刪掉后重新編譯(這次不指定python2版本直接npm install),居然奇跡般的又沒(méi)有報(bào)錯(cuò)?。?!想不通。。。難道npm會(huì)將上次編譯成功的配置保存下來(lái)??算了不糾結(jié)了哭泣!文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-534226.html

到了這里,關(guān)于npm install齊天大坑!??!gyp ERR! find VS msvs_version not set from command line or npm config的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • npm install運(yùn)行報(bào)錯(cuò)npm ERR! gyp ERR! not ok問(wèn)題解決

    npm install運(yùn)行報(bào)錯(cuò)npm ERR! gyp ERR! not ok問(wèn)題解決

    執(zhí)行 npm install 的時(shí)候報(bào)錯(cuò): 根據(jù)報(bào)錯(cuò)信息,看出時(shí)node-sass運(yùn)行出現(xiàn)問(wèn)題 解決: 1.查看當(dāng)前環(huán)境node版本 我這里是20.11.0 2.在package.json中查看node-sass的版本: 2.1package.json中有node-sass 我這里node-sass的版本是4.14.4 根據(jù)下圖查看node和node-sass版本是否匹配 如果node和node-sass版本不符合

    2024年01月24日
    瀏覽(93)
  • npm install 報(bào)錯(cuò) ERR! gyp ERR! node-sass python

    一、問(wèn)題描述: npm install 報(bào)錯(cuò) ERR! gyp ERR! ERR! stack Error: Can\\\'t find Python executable \\\"python\\\", you can set the PYTHON env variable node -v v16 node-gyp -v v3.8.0 二、可能原因 1 nodejs與sass版本不匹配(可能性最大:解決辦法見(jiàn)三) node版本是16,sass版本是4.14。重裝的node ,就好了。其他兩個(gè)是調(diào)查時(shí)看到

    2024年02月03日
    瀏覽(101)
  • 解決npm install報(bào)錯(cuò) npm ERR! gyp ERR! cwd D:\Projec\xxx\node_modules\node-sass (node-sass版本問(wèn)題)

    解決npm install報(bào)錯(cuò) npm ERR! gyp ERR! cwd D:\Projec\xxx\node_modules\node-sass (node-sass版本問(wèn)題)

    vue項(xiàng)目換電腦后npm install發(fā)現(xiàn)一直報(bào)如下的錯(cuò)誤: node-sass版本不兼容,比較老。還出現(xiàn)找不到python路徑的錯(cuò)誤。node-sass 需要 node-gyp安裝時(shí)需要進(jìn)行轉(zhuǎn)譯所以可能會(huì)出現(xiàn)各種按安裝問(wèn)題。且node-sass 本身就已經(jīng)是deprecated狀態(tài)了。如果不是維護(hù)老項(xiàng)目不建議再使用 由于它只用于開(kāi)

    2024年02月09日
    瀏覽(28)
  • 解決 npm ERR! node-sass 和 gyp ERR! node-gyp 報(bào)錯(cuò)問(wèn)題

    如果你機(jī)器里的node版本太高,又不想卸載重新安裝低版本的node,可以安裝一個(gè) NVM 版本管理工具,隨時(shí)切換node版本 1.下載安裝nvm:nvm for windows 2.安裝nvm后在命令窗口輸入命令 nvm,出現(xiàn)一堆提示文字后成功。 3.執(zhí)行安裝node版本命令 安裝指定版本(以14.18.3為例) 一些nvm常用命

    2023年04月08日
    瀏覽(41)
  • npm ERR! node-pre-gyp

    npm i 的時(shí)候報(bào) npm ERR! node-pre-gyp 錯(cuò)誤,是因?yàn)閚ode-gyp無(wú)法找到Python,可能是因?yàn)闆](méi)有設(shè)置Python環(huán)境變量或者Python未安裝; 一般js中引入canvas包的都需要Python去編輯底層 解決辦法: 確認(rèn)已安裝 Python 環(huán)境,可以在命令行窗口輸入 python --version 命令來(lái)確認(rèn)版本。 如果未安裝 Pytho

    2024年02月15日
    瀏覽(26)
  • npm install 報(bào)錯(cuò) gyp 解決方案

    npm install 報(bào)錯(cuò) gyp 解決方案

    問(wèn)題: 接手別人的項(xiàng)目,在安裝項(xiàng)目依賴 npm install 時(shí),一直提示 gyp 相關(guān)的錯(cuò)誤。 問(wèn)題原因: 項(xiàng)目中依賴項(xiàng) \\\"node-sass\\\": \\\"^4.14.1\\\", 與當(dāng)前node.js版本不符合。 解決問(wèn)題: 通過(guò)百度踩坑,發(fā)現(xiàn)在使用 \\\"node-sass\\\": \\\"^4.14.1\\\" 時(shí), node.js 版本應(yīng)為: 14.19.2 1、nvm 安裝 我使用的是v1.1.11的n

    2024年02月11日
    瀏覽(21)
  • 解決npm install報(bào)錯(cuò): No module named gyp

    解決npm install報(bào)錯(cuò): No module named gyp

    今天運(yùn)行一個(gè)以前vue項(xiàng)目,啟動(dòng)時(shí)報(bào)錯(cuò)如下: ?ERROR ?Failed to compile with 1 error上午10:19:33 ?error ?in ./src/App.vue?vuetype=styleindex=0lang=scss Syntax Error: Error: Missing binding D:javacodeSpringboot-MiMall-RSAVueFrontnode_modules_node-sass@4.14.1@nod ? ? ? ? e-sassvendorwin32-x64-83binding.node Node Sass could not

    2024年02月10日
    瀏覽(25)
  • npm install報(bào)錯(cuò)npm ERR! code ERESOLVE

    npm install報(bào)錯(cuò)npm ERR! code ERESOLVE

    1.npm install報(bào)錯(cuò)npm ERR! code ERESOLVE 解決方法 在npm install 后面加上–force或者–legacy-peer-deps 2.npm install 報(bào)錯(cuò) gyp ERR 原因:node和npm版本不匹配 解決方法 1.首先去node官網(wǎng)查找對(duì)應(yīng)版本 node官網(wǎng)版本 2 查看自己電腦的node、npm版本,win+r打開(kāi)cmd,輸入: 卸載原有的高版本node,下載安裝

    2024年02月15日
    瀏覽(27)
  • npm install出現(xiàn)npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve

    PS E:myvuebookshop npm i npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR!? npm ERR! While resolving: @vue/eslint-config-standard@6.1.0 npm ERR! Found: eslint-plugin-vue@8.7.1 npm ERR! node_modules/eslint-plugin-vue npm ERR! ? dev eslint-plugin-vue@\\\"^8.0.3\\\" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! p

    2024年02月11日
    瀏覽(101)
  • npm install 出現(xiàn) npm ERR! command failed 解決辦法

    本地使用npm install 時(shí)出現(xiàn)如下異常,可以看下本地是否安裝過(guò)歷史版本的node導(dǎo)致的版本沖突。 解決方案: 先將歷史版本的 node 卸載,再重新安裝后,再執(zhí)行npm install ?轉(zhuǎn)自下面這篇文章 npm install 時(shí) node-sass npm ERR command failed問(wèn)題解決

    2024年02月12日
    瀏覽(17)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包