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