Node Sass does not yet support your current environment: OS X Unsupported architecture (arm64) with Unsupported runtime (102)

Viewed 839

Mac OS 11.6 on Apple M1 chip

node version is 17.0.1

% node -v

v17.0.1

this error appears to have literally come from nowhere I can discern. ( I checked my software updates and there was no recent OS update)

developing an app locally on Rails 6.1.4.1

the Gemfile says sass-rails is 5.1.0

this error came out of literally nowhere because this app worked fine locally yesterday

aos.css:7 Uncaught Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Node Sass does not yet support your current environment: OS X Unsupported architecture (arm64) with Unsupported runtime (102)
For more information on which environments are supported please see:

already tried:

yarn remove node-sass

yarn add node-sass@4.14.1

1 Answers

This is resolvable with

rm -rf tmp/ on the root of the Rails app.

Related