question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to install on Apple M1

See original GitHub issue

Hi 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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Awjincommented, Sep 29, 2021

Just published 1.0.0-beta.4, which should fix the install.

1reaction
alenmcommented, Sep 26, 2021

Here are steps to reproduce this error. You would need an Apple M1 computer. and the following steps.

  1. Download Codyhouse framework
  2. Run npm install
  3. You will run into this error
/sass-embedded/dist/tool/utils.js:39
npm ERR! throw Error(`Architecure ${process.arch} is not supported.`);
npm ERR! Error: Architecure arm64 is not supported.
  1. Error is suggesting sass-embedded is not working because Apple M1 is not supported.

Spent time googling the issue and learned about the transition to sass and dart-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:

  1. Change the package.json by doing the following:

    • changed gulp-sass from 4.0.2 to 5.0.0
    • added "sass": "^1.42.1"
  2. Changed one line in gupfile.js to now require sass

var sass = require('gulp-sass')(require('sass'));

  1. Run npm install and now another error. Now the sass-embedded is missing dart-sass-embedded ENOENT
Error: spawn /Users/alen/Desktop/codyhouse-framework-master/node_modules/sass-embedded/dist/lib/src/vendor/dart-sass-embedded/dart-sass-embedded ENOENT
  1. In order to fix this issue is to just remove "sass-embedded": "^1.0.0-beta.3" completely from the package.json.
  2. Change the gulpfile.js so that the sass.complier requires sass
var sass = require('gulp-sass')(require('sass'));
sass.compiler = require('sass');

Re-run npm install and then npm run gulp watch and it works.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found