[英]angular: project failed to start after nodejs upgrade to 12.x
My Angular project failed to build and start after upgrading nodejs from 10.x to 12.x with the following message:在将 nodejs 从 10.x 升级到 12.x 后,我的 Angular 项目无法构建和启动,并显示以下消息:
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: Missing binding C:\xxx\client\node_modules\node-sass\vendor\win32-x64-72\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 12.x
Found bindings for the following environments:
- Windows 64-bit with Node.js 10.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to download the binding for your current environment.
I try the npm rebuild node-sass
, but it still can't work.我尝试了
npm rebuild node-sass
,但它仍然无法工作。 So what's the issue?那么问题是什么?
You can try these following things:您可以尝试以下方法:
npm i
npm i
uninstalling node-sass and then re-installing it.卸载 node-sass 然后重新安装它。
npm uninstall node-sass npm i node-sass
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.