本文主要介紹安裝node-sass時出錯(無法安裝nodesass),下面一起看看安裝node-sass時出錯(無法安裝nodesass)相關(guān)資訊。
運行項目下的npm install,發(fā)現(xiàn)node-sass安裝一直不成功,報了一堆錯誤。
gyp動詞檢查python檢查python可執(zhí)行文件 python2 在pathgyp動詞` which ` fail:而非found: python 2 gyp動詞` which ` failed at getnotfounderror(e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ which \ js: 13 : 12)gyp動詞` which ` failed at f(e: \ macyideaproject \ github _ project \ vue-admin-elementsexe \ index . js: 42 : 5 gyp動詞` which ` failed at e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ isexe \ windows . js: 36 : 5 gyp動詞` which ` failed at fsreq callback . on complete(fs . js: 183 :89:16gyp動詞` which ` failed at e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ is exe \ index . js: 5 gyp動詞` which ` failed at e: \ macyideaproject \ github _ project \ vue-admin-element ui-master;enoent gyp動詞檢查python檢查python可執(zhí)行文件 python 在pathgyp動詞` which ` fail:而非found: pythongyp動詞` which ` failed at getnotfounderror(e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ which \ js: 13 : 12)gyp動詞` which ` failed at f(e: \ macyideaproject \ github _ project \ vue-admin-elementhich `在e(e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ which \ which . js: 80 : 29)處失敗o1-@ . com \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ which \ which . js: 68 : 19)gyp動詞` which `在e處失敗(e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ which \ which . js: 80 echo 1-@ ;enoent gyp動詞&; which` failed } gyp動詞找不到 python 。檢查python launchergyp謂詞是否可以找不到 python 。猜測locationgyp動詞確保文件: c: \ python 27 \ python . :罐頭公司。;找不到python可執(zhí)行文件 python ,可以設(shè)置python env變量. gyp err!堆棧在python finder . failnopython(e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ node-gyp \ lib \ configure . js: 483 : 19)gyp err!堆棧在python finder . anonymous(e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ node-gyp \ lib \ configure . js: 508 : 16)gyp err!堆棧在e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ graceful-fs \ poly fills . js: 284 : 29 gyp err!堆棧在fsreqcallback . on complete(fs . js: 183 : 21)gyp err!系統(tǒng)windows_nt 10.0.22000gyp err!指揮與控制d: \ \ macyd:\\macyideaproject \ \ github _ project \ \ vue-admin-element ui-master \ \ node _ modules \ \ node-gyp \ \ bin \ \ node-gyp . js 重建 詳細 -libsass _ ext = -libsass _ cflags = -libsass _ ld flags = -libsass _ library = 吉普呃!cwd e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ node-sassgyp err!node -v v14.15.1gyp err!node-gyp-v 3 . 6 . 2 gyp err!not okbuild失敗,出現(xiàn)錯誤cod: 1 npm warn可選跳過可選dependency: fsevents@^1.0.0(node _ modules \ choki dar \ node _ modules \ f events): npm warn not sup跳過可選dependency: fs:不支持的平臺想要{;os;echo1-@.co m 達爾文和, arch : 任何 } (curr: { os : win32 , arch : x64 })npm err!代碼elifecycl: ` node scripts/build . js ` npm :npm err中找到!c: \ users \ 27928 \ appdata \ roaming \ npm-cache \ _ logs \ 2022-05-19t 04 _ 22 _ 20 _ 960 z-debug . log網(wǎng)上查了一下資料說是國內(nèi)網(wǎng)絡(luò)環(huán)境原因下載失敗。因此,
.comnpm.taobao.org/mirrors/node-sass/tag: npm inode-sass-sass _ binary _ site = echo 0-@
可以鏡像一下。
了解更多安裝node-sass時出錯(無法安裝nodesass)相關(guān)內(nèi)容請關(guān)注本站點。