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

 

posted @ 2020-04-23 19:05  史密斯崔  阅读(1445)  评论(0编辑  收藏  举报