之前可能因?yàn)殡娔X不知道哪抽風(fēng)了,在npm build的時(shí)候進(jìn)入就卡在入口的地方,啟動express的時(shí)候也會,所以就重裝了一下node
* 重裝node
其實(shí)也不是重裝,就是使用 where node 查看node的安裝目錄,然后下載新版本的node,覆蓋安裝就是了
* 原本node v8.x 更新后 node
v10.x,但是express啟動還是卡主了,不懂什么原因,但是悲劇的是,原來的vue詳情啟動的時(shí)候就報(bào)錯(cuò)了。。。
···
Module build failed: Error: Missing binding
G:\myCode\YB\clientapps\AccountV4\[email protected]@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
···
報(bào)錯(cuò)大概就這段比較看得出問題。。。
* 解決辦法
網(wǎng)上找了一下,需要重裝node-sass包
所以呢
···
npm rebuild node-sass
···
安裝完重新啟動就ok了, 所以沒事還是別更新node,最好保持團(tuán)隊(duì)的環(huán)境一致~
熱門工具 換一換