Ionic Serve error-Node Sass does not yet support your current environment: Windows 64-bit

☆樱花仙子☆ 提交于 2021-02-06 14:10:31

问题


I'm used Ionic3 for my university project ,

I'm beginner for the Ionic,now I'm reinstall Node.js v9.1.0
after i can't serve my project How can i fix it

Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (59) For more information on which environments are supported please see: https://github.com/sass/node-sass/releases/tag/v4.5.3 at module.exports (D:\Mobile Application\Ionic\myApp\node_modules\node-sass\lib\binding.js:13:13) at Object. (D:\Mobile Application\Ionic\myApp\node_modules\node-sass\lib\index.js:14:35) at Module._compile (module.js:641:30) at Object.Module._extensions..js (module.js:652:10) at Module.load (module.js:560:32) at tryModuleLoad (module.js:503:12) at Function.Module._load (module.js:495:3) at Module.require (module.js:585:17) at require (internal/module.js:11:18) at Object. (D:\Mobile Application\Ionic\myApp\node_modules\@ionic\app-scripts\dist\core\bundle-components.js:6:16)


回答1:


@core114's answer saved me! I ran the following commands to fix it:

sudo npm install -g n
sudo npm cache clean -f
sudo n 8.9.1

8.9.1 is the latest stable. I'm on Arch Linux and it autoupgraded me to 9.2.1, which does NOT work with fsevents.




回答2:


I fixed my issue:

I removed the Node.js v9.1.0 and after re installNode.js v8.8.0 now its working.




回答3:


To support Node 9 you need to install node-sass 4.6 or greater



来源:https://stackoverflow.com/questions/47198243/ionic-serve-error-node-sass-does-not-yet-support-your-current-environment-windo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!