Node Sass could not find a binding for your current environment


Node環境從8升級到10后,Node Sass could not find a binding for your current environment

標簽(空格分隔): Node


Node環境從8升級到10后,運行程序拋出Node Sass could not find a binding for your current environment的錯誤。

按照網上的解決方案,運行npm rebuild node-sass,提示下載某個文件超時(Cannot download "https://github.com/sass/node-sass/releases/download/v4.9.3/win32-x64-64_binding.node")。

所以干脆直接刪除node-sass包后再重新install

npm uninstall -s node-sass
npm install -s node-sass

老項目可能有些包的依賴版本發生變化,可以執行

`npm audit fix

來修復它們。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM