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

npm install時(shí) node-sass npm ERR command failed問(wèn)題解決

這篇具有很好參考價(jià)值的文章主要介紹了npm install時(shí) node-sass npm ERR command failed問(wèn)題解決。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

顯示的錯(cuò)誤信息

npm ERR! code 1
npm ERR! path C:\Users\li-671\Downloads\light-blue-vue-admin-master\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\li-671\Downloads\light-blue-vue-admin-master\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli   'C:\\Program Files\\nodejs\\node.exe',
npm ERR! gyp verb cli   'C:\\Users\\li-671\\Downloads\\light-blue-vue-admin-master\\node_modules\\node-gyp\\bin\\node-gyp.js',
npm ERR! gyp verb cli   'rebuild',
npm ERR! gyp verb cli   '--verbose',
npm ERR! gyp verb cli   '--libsass_ext=',
npm ERR! gyp verb cli   '--libsass_cflags=',
npm ERR! gyp verb cli   '--libsass_ldflags=',
npm ERR! gyp verb cli   '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp@8.4.1
npm ERR! gyp info using node@18.12.1 | win32 | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb download using dist-url https://npm.taobao.org/dist
npm ERR! gyp verb find Python Python is not set from command line or npm configuration
npm ERR! gyp verb find Python Python is not set from environment variable PYTHON
npm ERR! gyp verb find Python checking if "python3" can be used
npm ERR! gyp verb find Python - executing "python3" to get executable path
npm ERR! gyp verb find Python - "python3" is not in PATH or produced an error
npm ERR! gyp verb find Python checking if "python" can be used
npm ERR! gyp verb find Python - executing "python" to get executable path
npm ERR! gyp verb find Python - executable path is "C:\ProgramData\Anaconda3\python.exe"
npm ERR! gyp verb find Python - executing "C:\ProgramData\Anaconda3\python.exe" to get version
npm ERR! gyp verb find Python - version is "3.9.12"
npm ERR! gyp info find Python using Python version 3.9.12 found at "C:\ProgramData\Anaconda3\python.exe"
npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 18.12.1
npm ERR! gyp verb command install [ '18.12.1' ]

出現(xiàn)錯(cuò)誤后,找了很多方法,網(wǎng)上關(guān)于這個(gè)問(wèn)題的解決方法也很多,嘗試了兩三天,最后發(fā)現(xiàn)了一個(gè)終極解決方案,親測(cè)有效?。。?/strong>,下面是鏈接。

npm install 時(shí) node-sass npm ERR command failed問(wèn)題解決 文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-557616.html

到了這里,關(guān)于npm install時(shí) node-sass npm ERR command failed問(wèn)題解決的文章就介紹完了。如果您還想了解更多內(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 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)
  • 解決sass問(wèn)題:npm ERR! node-sass@9.0.0 postinstall: `node scripts/build.js`

    解決sass問(wèn)題:npm ERR! node-sass@9.0.0 postinstall: `node scripts/build.js`

    目錄 一、遇到問(wèn)題 解決辦法 二、?再次遇到問(wèn)題? 解決辦法? 題外話 1. 運(yùn)行這個(gè)項(xiàng)目的適合,遇到了沒(méi)有sass的問(wèn)題 解決辦法 然后就用命令下載sass 2. 下載sass的時(shí)候又發(fā)現(xiàn)了一個(gè)這樣的問(wèn)題 解決辦法? 檢查在這個(gè)錯(cuò)誤之前有沒(méi)有其他的錯(cuò)誤出現(xiàn) ,如果有就先去解決其他的

    2024年02月06日
    瀏覽(31)
  • 解決npm install安裝node-sass包容易失敗的問(wèn)題

    解決npm install安裝node-sass包容易失敗的問(wèn)題

    ?具體問(wèn)題如下: 2、問(wèn)題分析 npm版本過(guò)高 3、問(wèn)題解決 npm install npm@6.14.10 -g 如果還提示出現(xiàn) python 的信息,說(shuō)明還需要安裝python,去python官網(wǎng)下載對(duì)應(yīng)版本的安裝包安裝即可,一般是2.7版本。python官網(wǎng)下載 如果提示 這些等亂七八糟的基本上就是node-sass 版本沖突問(wèn)題 直接去

    2024年04月13日
    瀏覽(98)
  • vue項(xiàng)目啟動(dòng)npm install和npm run serve時(shí)出現(xiàn)錯(cuò)誤Failed to resolve loader:node-sass

    vue項(xiàng)目啟動(dòng)npm install和npm run serve時(shí)出現(xiàn)錯(cuò)誤Failed to resolve loader:node-sass

    解決方法: 解決方法: node sass-node loader-sass 14.16.0 4.14.1 8.0.2

    2024年04月26日
    瀏覽(52)
  • 解決npm ERR! path E:\XXX\node_modules\node-sass的問(wèn)題

    解決npm ERR! path E:\XXX\node_modules\node-sass的問(wèn)題

    在Node.js項(xiàng)目中,我們經(jīng)常使用npm來(lái)安裝和管理各種依賴包。然而,有時(shí)候我們可能會(huì)遇到一些關(guān)于npm的錯(cuò)誤,其中最常見(jiàn)的就是\\\"npm ERR! path E:XXXnode_modulesnode-sass\\\"。這個(gè)錯(cuò)誤通常是由于node-sass的路徑問(wèn)題導(dǎo)致的。下面我將詳細(xì)介紹如何解決這個(gè)問(wèn)題。 首先,我們需要確定問(wèn)

    2024年02月20日
    瀏覽(25)
  • node-sass 安裝失敗 Command failed 報(bào)錯(cuò) node_modules\node-sass: Command failed. Exit code: 1

    通過(guò) yarn install 安裝依賴包 node-sass 時(shí)總是報(bào)錯(cuò), 具體的錯(cuò)誤原因?yàn)?當(dāng)前使用的node版本與依賴的node-sass版本不匹配,調(diào)整當(dāng)前node版本,建議使用nvm來(lái)控制node版本切換 具體對(duì)應(yīng)關(guān)系如下: NodeJS Supported node-sass version Node Module Node 19 8.0+ 111 Node 18 8.0+ 108 Node 17 7.0+, 8.0 102 Node 16 6

    2024年02月04日
    瀏覽(25)
  • npm ERR! path E:node_modules\node-sass

    npm ERR! path E:node_modules\node-sass

    分析報(bào)錯(cuò)發(fā)現(xiàn)有關(guān) python2 環(huán)境相關(guān)報(bào)錯(cuò) 解決辦法: 需要再電腦中安裝python 2.X版本的環(huán)境 因?yàn)槲冶镜仉娔X有python 3.9的環(huán)境,所以我 使用 Anaconda安裝python環(huán)境 1、安裝?python 2.7 2、激活虛擬環(huán)境 3、找到環(huán)境位置 4、使用 node配置python環(huán)境 到此結(jié)束 重新安裝node依賴就可以了

    2024年04月08日
    瀏覽(25)
  • npm ERR! node-sass@6.0.1 postinstall: `node scripts/build.js`

    npm ERR! node-sass@6.0.1 postinstall: `node scripts/build.js`

    vue npm install提示以下錯(cuò)誤? 嘗試用下面的方式重新安裝弄得-saas,結(jié)果不起作用?。 npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass npm install node-sass 這時(shí)考慮降級(jí)node版本,node.js從10.0-8.17版本。? 運(yùn)行npm install還是報(bào)同樣的錯(cuò)誤 最后繼續(xù)查找解決方案,發(fā)現(xiàn)使用下面的

    2024年02月07日
    瀏覽(90)
  • vue node_modules\node-sass: Command failed. 安裝失敗,如何解決,使用 sass 替換

    vue node_modules\node-sass: Command failed. 安裝失敗,如何解決,使用 sass 替換

    package.json vue 項(xiàng)目中,安裝依賴的時(shí)候出現(xiàn)錯(cuò)誤,如下: package.json 中有個(gè) node-sass 的包,在安裝并編譯這個(gè)的時(shí)候出現(xiàn)問(wèn)題 node-sass 的主要功能是將 sass/scss - css ,跟 sass 的作用是一樣的, sass 是 dart 語(yǔ)言寫的, 直接用 sass 替換掉 node-sass 即可 在使用 vue create appName 創(chuàng)建 vue 項(xiàng)

    2024年02月03日
    瀏覽(25)
  • 執(zhí)行npm install時(shí)老是安裝不成功node-sass的原因和解決方案

    執(zhí)行npm install時(shí)老是安裝不成功node-sass的原因和解決方案

    相信你安裝前端項(xiàng)目所需要的依賴包(npm install 或 yarn install)時(shí),有可能會(huì)出現(xiàn)如下報(bào)錯(cuò): 那么到底是什么原因?qū)е逻@個(gè)問(wèn)題出現(xiàn)呢? 最多的原因還是 node的版本 和node-sass的版本不一致,比如node版本是 16+的,而你的版本還是舊的 “node-sass”: “^4.14.1”。因?yàn)閚ode并不會(huì)兼容

    2024年02月06日
    瀏覽(42)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包