E:\A Prem World\Team_Work_Tasks\Anjali\Anjali_20160524\QuizApp_20160524_01_Anj>ionic serve -l
(node:4772) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
There is an error in your gulpfile:
Error: Node Sass does not yet support your current environment: Windows 64-bit with false
For more information on which environments are supported please see:
TODO URL
    at Object.<anonymous> (E:\A Prem World\Team_Work_Tasks\Anjali\Anjali_20160524\QuizApp_20160524_01_Anj\node_modules\node-sass\lib\index.js:12:11)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (E:\A Prem World\Team_Work_Tasks\Anjali\Anjali_20160524\QuizApp_20160524_01_Anj\node_modules\gulp-sass\index.js:187:21)
    at Module._compile (module.js:541:32)

当前回答

对于visual studio 2019,需要更改MSBuild路径

npm config set msvs_version 2017

npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe"

npm rebuild node-sass

其他回答

NPM卸载node-sass && NPM安装node-sass是更好的解决方法

删除node_modules并运行npm install为我修复了这些错误。

其他人说:npm重建node-sass或npm审计修复可能会有帮助。

我用angular 7得到了这个错误,帮助我的是, 从windows power shell运行命令:

npm install --global --production windows-build-tools

然后我再次打开我的VS Code,在它的终端上运行相同的命令 NPM卸载node-sass并安装node-sass

当使用Visual Studio中的任务运行器资源管理器时,确保你优先选择正确的PATH。

还要确保,一旦你改变优先级,重新启动VS。

$(PATH)指向默认节点路径 .\node_modules\.bin指向本地项目路径

因此,当您使用NVM切换节点版本时,您应该选择系统路径。

更新你的sass-loader应该会有神奇的效果。

npm i sass-loader@latest