Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runt

错误信息:

D:\project\dahua\template\ionic-preview-app-master>ionic serve
[WARN] Detected locally installed Ionic CLI, but it's too old--using global CLI.
> ionic-app-scripts serve --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
[app-scripts] D:\project\dahua\template\ionic-preview-app-master\node_modules\node-sass\lib\binding.js:13
[app-scripts]       throw new Error(errors.unsupportedEnvironment());
[app-scripts]       ^
[app-scripts] Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (64)
[app-scripts] For more information on which environments are supported please see:
[app-scripts] https://github.com/sass/node-sass/releases/tag/v4.5.3
[app-scripts]     at module.exports (D:\project\dahua\template\ionic-preview-app-master\node_modules\node-sass\lib\binding.js:13:13)
[app-scripts]     at Object.<anonymous> (D:\project\dahua\template\ionic-preview-app-master\node_modules\node-sass\lib\index.js:14:35)
[app-scripts]     at Module._compile (internal/modules/cjs/loader.js:688:30)
[app-scripts]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
[app-scripts]     at Module.load (internal/modules/cjs/loader.js:598:32)
[app-scripts]     at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
[app-scripts]     at Function.Module._load (internal/modules/cjs/loader.js:529:3)
[app-scripts]     at Module.require (internal/modules/cjs/loader.js:636:17)
[app-scripts]     at require (internal/modules/cjs/helpers.js:20:18)
[app-scripts]     at Object.<anonymous> (D:\project\dahua\template\ionic-preview-app-master\node_modules\@ionic\app-scripts\dist\core\bundle-components.js:6:16)

[ERROR] ionic-app-scripts has unexpectedly closed (exit code 1).

        The Ionic CLI will exit. Please check any output above for error details.

解决办法:

卸载旧版node-sass:npm uninstall --save node-sass

安装新版node-sass:npm install --save node-sass

发布了362 篇原创文章 · 获赞 121 · 访问量 61万+

猜你喜欢

转载自blog.csdn.net/daqiang012/article/details/84675134