Not able to install on Apple M1
See original GitHub issueHi there, we have included sass-emebedded
as npm module for our CSS framework. Some of our users have been having issues installing it on an Apple M1 device.
npm ERR! path /Users/alen/Desktop/Newbie~og/node_modules/sass-embedded
npm ERR! command failed
npm ERR! command sh -c node ./download-compiler-for-end-user.js
npm ERR! /Users/alen/Desktop/Newbie~og/node_modules/sass-embedded/dist/tool/utils.js:39
npm ERR! throw Error(`Architecure ${process.arch} is not supported.`);
npm ERR! ^
npm ERR!
npm ERR! Error: Architecure arm64 is not supported.
npm ERR! at /Users/alen/Desktop/Newbie~og/node_modules/sass-embedded/dist/tool/utils.js:39:19
npm ERR! at Object.<anonymous> (/Users/alen/Desktop/Newbie~og/node_modules/sass-embedded/dist/tool/utils.js:41:3)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1108:14)
npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:973:32)
npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:813:14)
npm ERR! at Module.require (node:internal/modules/cjs/loader:997:19)
npm ERR! at require (node:internal/modules/cjs/helpers:92:18)
npm ERR! at Object.<anonymous> (/Users/alen/Desktop/Newbie~og/node_modules/sass-embedded/download-compiler-for-end-user.js:9:29)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1108:14)
Replacing sass-embedded
with sass
fixes the problem. You can find some additional info in this issue by @alenm.
Do you know if there’s a way to fix this error? Thank you.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
If an error occurred while updating or installing macOS
If an error occurred while updating or installing macOS · Check your internet connection · Install in safe mode · Install after repairing...
Read more >Fixed- Apps Not Downloading From App Store Mac M1 ...
Are you trying to install apps from the App Store in M1 Mac, but it is not installing, ... Your browser can't play...
Read more >macOS Monterey not Installing on Macbook M1? - Here's the Fix!
Are you trying to update your Mac to macOS Monterey from MacOS Big Sur, but macOS Monterey Download Failed or Update not Found?...
Read more >What to do if your Ventura update is stuck - Macworld
If you're having problems downloading a point update (not a complete new version) via Software Update or Mac App Store, you can use...
Read more >Can't install macOS Ventura Problems Mac, M1 MacBook Fixed
Fix 1: Delete installer File and Re-download macOS · Apple System Status · Fix 2: Reset PRAM/ NVRAM and SMC [For intel Mac...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just published
1.0.0-beta.4
, which should fix the install.Here are steps to reproduce this error. You would need an Apple M1 computer. and the following steps.
npm install
sass-embedded
is not working because Apple M1 is not supported.Spent time googling the issue and learned about the transition to
sass
anddart-sass
and I don’t particular understand it well, so I might be mis-informed in what I’m doing. But from what I gathered I did the following:Change the
package.json
by doing the following:gulp-sass
from4.0.2
to5.0.0
"sass": "^1.42.1"
Changed one line in
gupfile.js
to now requiresass
var sass = require('gulp-sass')(require('sass'));
npm install
and now another error. Now thesass-embedded
is missingdart-sass-embedded ENOENT
"sass-embedded": "^1.0.0-beta.3"
completely from thepackage.json
.gulpfile.js
so that the sass.complier requires sassRe-run
npm install
and thennpm run gulp watch
and it works.