-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Installing node-sass fails on Mac with M1 #3184
Comments
M1 support is being tracked in #3033, but you're just running an incompatible combo https://github.com/sass/node-sass#node-version-support-policy |
Replace node-sass with sass (https://sass-lang.com/blog/libsass-is-deprecated) to run sass on Macs with M1 (sass/node-sass#3184).
@nschonni hi i use the same issue npm ERR! Failed at the node-sass@4.14.1 postinstall script.
|
I had the same issue as you, for me the only way to solve was this :
|
I've used this command with some success: |
I tried everything you have tried but still not working |
use |
Remove node saas use sass |
That's useful~ thanks ! |
In case someone is still having troubles with this, to me the solution has been to install Python2, delete node_modules folder and re-create it. Phyton2: 2.7.18 |
I recently switched to Apple M1 and now getting errors on
npm install node-sass
. Not sure whether this has anything to do with M1, but haven't been able to identify any other reason.npm -v
): 7.24.0node -v
): v16.10.0node -p process.versions
):{
node: '16.10.0',
v8: '9.3.345.19-node.14',
uv: '1.42.0',
zlib: '1.2.11',
brotli: '1.0.9',
ares: '1.17.2',
modules: '93',
nghttp2: '1.45.1',
napi: '8',
llhttp: '6.0.2',
openssl: '1.1.1l',
cldr: '39.0',
icu: '69.1',
tz: '2021a',
unicode: '13.0'
}
node -p process.platform
): darwinnode -p process.arch
): arm64node -p "require('node-sass').info"
):node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'node-sass'
Require stack:
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at [eval]:1:1
at Script.runInThisContext (node:vm:129:12)
at Object.runInThisContext (node:vm:305:38)
at node:internal/process/execution:81:19
at [eval]-wrapper:6:22
at evalScript (node:internal/process/execution:80:60) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/Users/gavinhughes/.npm/_logs/[eval]' ]
}
npm ls node-sass
):/Users/gavinhughes/.npm/_logs
└── (empty)
The text was updated successfully, but these errors were encountered: