在项目上没有工作一段时间后,我在尝试启动该过程时遇到以下错误:
$ gulp
LOCAL_PATH/node_modules/node-sass/lib/binding.js:13
throw new Error(errors.unsupportedEnvironment());
^
Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (57)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v3.13.1
at module.exports (LOCAL_PATH/node_modules/node-sass/lib/binding.js:13:13)
at Object.<anonymous> (LOCAL_PATH/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Module.require (module.js:517:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (LOCAL_PATH/node_modules/gulp-sass/index.js:187:21)
不幸的是我不知道如何解决这个问题。所以任何提示都表示赞赏,谢谢!
答案 0 :(得分:1)
如果您打开https://github.com/sass/node-sass/releases/tag/v3.13.1(如错误消息中所述),您可以看到macOS的兼容性表:
OS X | x64 | 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7
您可能正在使用Node 8?
最新版本的node-sass
确实支持节点8:https://github.com/sass/node-sass/releases
尝试运行npm install node-sass@latest
进行升级。