嘗試了不同的解決方案,但在 npm install 期間存在此問題。我已經洗掉了包鎖定檔案并嘗試了。--force 或 --legacy-peer-deps 選項也沒有幫助。
npm WARN deprecated core-js@2.6.12: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path C:\Users\HillsonGhimire\Desktop\RC\F\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\HillsonGhimire\Desktop\RC\F\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 版本:8.3.1
節點版本:16.14.0
uj5u.com熱心網友回復:
您可以通過根據您的節點版本安裝 node-sass 來嘗試這些步驟
rm -rf node_modules package-lock.json
npm install --saveDev node-sass@6.0.1
npm install
編輯
由于棄用,更改node-sass為sass應該解決此問題
uj5u.com熱心網友回復:
cache嘗試使用以下代碼清除:
npm clean-install
它應該作業。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/442285.html
