Fourseven:scss package problem during installation node-sass on M3 Pro

Hi, i already have project (actually old project), I’m using node v16.20.2 Mac M3 Sequoia 15 and python3 --version 3.13.0. I clone project meteor version 2.7.1, and when npm i its didn’t have error, but when running meteor it show error like this :

Errors prevented startup:

While loading package fourseven:scss@4.15.0:
error: Command failed:
/Users/admin/.meteor/packages/meteor-tool/.2.7.1.1ad0i45.8b42++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/bin/npm
rebuild --update-binary
Cannot download “https://github.com/sass/node-sass/releases/download/v4.14.1/darwin-arm64-83_binding.node”:

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

export HTTP_PROXY

or configure npm proxy via

npm config set proxy http :// example. com: 8080
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli
‘/Users/admin/.meteor/packages/meteor-tool/.2.7.1.1ad0i45.8b42++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/bin/node’,
gyp verb cli
‘/Users/admin/.meteor/packages/fourseven_scss/.4.15.0.1qpj9hj.tpfe++os+web.browser+web.browser.legacy+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/bin/node-gyp.js’,
gyp verb cli ‘rebuild’,
gyp verb cli ‘–verbose’,
gyp verb cli ‘–libsass_ext=’,
gyp verb cli ‘–libsass_cflags=’,
gyp verb cli ‘–libsass_ldflags=’,
gyp verb cli ‘–libsass_library=’
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@14.19.1 | darwin | arm64
gyp verb command rebuild
gyp verb command clean
gyp verb clean removing “build” directory
gyp verb command configure
gyp verb check python checking for Python executable “/opt/homebrew/bin/python3.9” in the PATH
gyp verb which succeeded /opt/homebrew/bin/python3.9 /opt/homebrew/bin/python3.9
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /opt/homebrew/bin/python3.9 -c import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack File “”, line 1
gyp ERR! stack import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:383:12)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at maybeClose (internal/child_process.js:1058:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
gyp ERR! System Darwin 24.1.0
gyp ERR! command
“/Users/admin/.meteor/packages/meteor-tool/.2.7.1.1ad0i45.8b42++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/bin/node”
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

i already tying using
brew install pyenv
pyenv install 2.7.18
export PATH=“$(pyenv root)/shims:${PATH}”

but it didnt works, could you guys help me?

thanks

Check if this discussion is helpful.

hallo, its didn’t working on me :frowning:
do you have any suggest?

Did you try this

meteor remove fourseven:scss

meteor add leonardoventurini:scss

its shows same error

meteor remove fourseven:scss
=> Errors after removing packages

While loading package fourseven:scss@4.15.0:
error: Command failed:
/Users/admin/.meteor/packages/meteor-tool/.2.7.1.1ad0i45.8b42++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/bin/npm rebuild
–update-binary
Cannot download “https://github.com/sass/node-sass/releases/download/v4.14.1/darwin-arm64-83_binding.node”:

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

npm config set proxy http://example.com:8080
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli
‘/Users/admin/.meteor/packages/meteor-tool/.2.7.1.1ad0i45.8b42++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/bin/node’,
gyp verb cli
‘/Users/admin/.meteor/packages/fourseven_scss/.4.15.0.1qpj9hj.tpfe++os+web.browser+web.browser.legacy+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/bin/node-gyp.js’,
gyp verb cli ‘rebuild’,
gyp verb cli ‘–verbose’,
gyp verb cli ‘–libsass_ext=’,
gyp verb cli ‘–libsass_cflags=’,
gyp verb cli ‘–libsass_ldflags=’,
gyp verb cli ‘–libsass_library=’
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@14.19.1 | darwin | arm64
gyp verb command rebuild
gyp verb command clean
gyp verb clean removing “build” directory
gyp verb command configure
gyp verb check python checking for Python executable “/opt/homebrew/bin/python3.9” in the PATH
gyp verb which succeeded /opt/homebrew/bin/python3.9 /opt/homebrew/bin/python3.9
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /opt/homebrew/bin/python3.9 -c import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack File “”, line 1
gyp ERR! stack import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:383:12)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at maybeClose (internal/child_process.js:1058:16)
gyp ERR! stack at Socket. (internal/child_process.js:443:11)
gyp ERR! stack at Socket.emit (events.js:400:28)
gyp ERR! stack at Pipe. (net.js:686:12)
gyp ERR! System Darwin 24.1.0
gyp ERR! command
“/Users/admin/.meteor/packages/meteor-tool/.2.7.1.1ad0i45.8b42++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/bin/node”
“/Users/admin/.meteor/packages/fourseven_scss/.4.15.0.1qpj9hj.tpfe++os+web.browser+web.browser.legacy+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/bin/node-gyp.js”
“rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
gyp ERR! cwd
/Users/admin/.meteor/packages/fourseven_scss/.4.15.0.1qpj9hj.tpfe++os+web.browser+web.browser.legacy+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-natlg4.c78a/node_modules/node-sass
gyp ERR! node -v v14.19.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.14.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

ok maybe try to delete the record from project/.meteor/packages

its showing same error when running ‘meteor’ …

Is it caused by the ARM64 architecture?

btw, when running meteor list, its show same error too

You need to build the package locally using python 2.

Here is how I interpret your error:

The package is not available for your architecture.

The script tried to build locally for your architecture using node-gyp 3.8.0:

But a syntax error happened using the executable Python in your machine which is python3.9

Checking node-gyp page: GitHub - nodejs/node-gyp: Node.js native addon build tool

Important

Python >= v3.12 requires node-gyp >= v10

My educated guess is that the rebuild will work using Python 2.x

Try pip3 install setuptools

the problem is that this doesn’t exist:

Cannot download https://github.com/sass/node-sass/releases/download/v4.14.1/darwin-arm64-83_binding.node

I think you need to somehow hard remove this package from your project. Maybe try to remove the package with internet turned off or remove the line from the packages files and delete everything from the .meteor/local folder except the db folder

I’m using the version fourseven:scss@4.17.0-rc.0 and it is working fine.

It works by reinstalling Meteor using npm. Thank you, guys!