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