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)

当前回答

试试这个:

npm --depth 9999 update
npm rebuild node-sass

其他回答

命令npm uninstall node-sass && npm install node-sass对我没有帮助,但在安装Python 2.7和Visual c++构建工具后,我删除了node_modules文件夹,从管理员打开CMD并运行npm install——msvs_version=2015。安装成功!

这条评论和这个链接也会有所帮助。

遇到这个问题,npm i @ionic/app-scripts是唯一工作的东西。

下面的代码适合我。

npm uninstall node-sass --legacy-peer-deps
npm install node-sass --legacy-peer-deps

查看Node - Sass发布说明,了解您拥有的Node - Sass版本,了解需要哪个版本的Node。如果node的版本错误,则必须降级node或升级node-sass,直到有兼容的对为止。如果节点版本被支持,你可能只需要运行npm rebuild node-sass。如果这不起作用,你可以npm卸载node-sass或npm安装node-sass

这里的最佳解决方案是迁移到dart-sass,因为node-sass库已被弃用。