尝试启动 gulp 进程时出错
Error while trying to start gulp process
在项目上有一段时间没有工作后,我在尝试启动该过程时遇到以下错误:
$ 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)
不幸的是,我不知道如何解决这个问题。所以感谢任何提示,谢谢!
如果打开 https://github.com/sass/node-sass/releases/tag/v3.13.1(如错误消息中所述),您可以看到 macOS 的兼容性 table:
OS X | x64 | 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7
您可能正在使用 Node 8?
node-sass
的最新版本确实支持 Node 8:https://github.com/sass/node-sass/releases
尝试运行npm install node-sass@latest
升级。
在项目上有一段时间没有工作后,我在尝试启动该过程时遇到以下错误:
$ 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)
不幸的是,我不知道如何解决这个问题。所以感谢任何提示,谢谢!
如果打开 https://github.com/sass/node-sass/releases/tag/v3.13.1(如错误消息中所述),您可以看到 macOS 的兼容性 table:
OS X | x64 | 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7
您可能正在使用 Node 8?
node-sass
的最新版本确实支持 Node 8:https://github.com/sass/node-sass/releases
尝试运行npm install node-sass@latest
升级。