首页 > 解决方案 > Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (72)

问题描述

I'm using macOS Catalina 10.15.3.

I'm generating thumbnail images with this Jekyll theme, and when I enter gulp img, that error occurs.

Requiring external module babel-register
~/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 (72)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.7.1
    at module.exports (~/node_modules/node-sass/lib/binding.js:13:13)
    at Object.<anonymous> (~/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (internal/modules/cjs/loader.js:1157:30)
    at Module._extensions..js (internal/modules/cjs/loader.js:1177:10)
    at Object.require.extensions.<computed> [as .js] (~/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (internal/modules/cjs/loader.js:1001:32)
    at Function.Module._load (internal/modules/cjs/loader.js:900:14)
    at Module.require (internal/modules/cjs/loader.js:1043:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (~/node_modules/gulp-sass/index.js:187:21)

I tried everything, like npm install, npm uninstall, npm rebuild node-sass, and so on, but I don't know why the error appears.

标签: node.jssass

解决方案


我有同样的问题。对我来说,它有助于重新安装 NodeJs(在我的例子中是 14.15.1 LTS),然后是已经提到的命令:

npm rebuild node-sass

推荐阅读