离子服务因错误而停止工作:' Node Sass尚不支持您当前的环境'

时间:2018-02-20 18:45:16

标签: angular ionic-framework ionic2 ionic-native

离子服务曾经很好地工作,突然我去运行我的应用程序,我一直得到这个:

Danas-MacBook-Air:myFinalApp DanaCarlin$ ionic serve
Error: Node Sass does not yet support your current environment: OS X 
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 (/Users/DanaCarlin/MyFinalApp/node_modules/node-
sass/lib/binding.js:13:13)
at Object.<anonymous> 
(/Users/DanaCarlin/MyFinalApp/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.<anonymous> 
(/Users/DanaCarlin/MyFinalApp/node_modules/@ionic/app-
scripts/dist/core/bundle-components.js:6:16)

我认为我没有改变任何事情。有人可以帮帮我!谢谢!

1 个答案:

答案 0 :(得分:1)

我想你需要重建node-sass:

npm rebuild node-sass