更新node.js后Node Sass could not find a binding for your current environment 报错

更新node.js后项目文件启动报错;

Module build failed: Error: Missing binding D:\项目文件\天津中审联项目\天津中审联管理系统\中审联5.1期\tjzsl5.1\node_modules\[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

解决办法:删除文件的下载依赖文件node_modules夹,重新下载依赖;npm install
然后重新npm run dev 运行项目,即可解决

你可能感兴趣的:(项目bug处理)