node升級后,項目中的node-sass報錯的問題


1.重裝node

其實也不是重裝,就是使用 where node 查看node的安裝目錄,然后下載新版本的node,覆蓋安裝就是了

2.原本node v8.x 更新后 node v10.x,但是express啟動還是卡主了,不懂什么原因,但是悲劇的是,原來的vue詳情啟動的時候就報錯了。。。

Module build failed: Error: Missing binding G:\myCode\YB\clientapps\AccountV4\node_modules_node-sass@4.9.0@node-sass\vendor\win32-x64-64\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 10.x
Found bindings for the following environments:

Windows 64-bit with Node.js 8.x

報錯大概就這段比較看得出問題。。。
解決辦法
網上找了一下,需要重裝node-sass包
所以呢

npm install node-sass@latest

 


免責聲明!

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



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