1、更新了node,原本node v8.x 更新后 node v10.x,启动原来的项目,报错如下:
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 rebuild node-sass
安装完重新启动就ok了, 所以没事还是别更新node,最好保持团队的环境一致~
npm update
网友评论