Fourseven:scss package problem during installation node-sass on macOS

Hi, after migration my project from Ubuntu to MacOS, I have problem when I wants to run meteor app (development). Problem is probably with node-sass package, which is dependency of fourseven:scss. Meteor is unable to download node-sass package, In ubuntu from the same network everything works. Also, when I tried to install node sass (same version) globally directly with npm, node-sass is installed without problems (on same macOS machne). …only meteor is not able to download the package. Starting the meteor will break with following error:

While loading package fourseven:scss@4.15.0:
   error: Command failed:
   /Users/nodsec/.meteor/packages/meteor-tool/.2.5.6.2hd4yu.rdoie++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

Thanks a lot for an each help :slight_smile:

Hi @nodsec

Which macOS version are you using? Is it M1? also, what is your Node Version?

1 Like

macOS: 12.13.1
M1: yes
Node: v14.19.1


npm install -g node-sass is successfully done

meteor run will crash during the installation of node-sass

…I tried to check the url of the package, which is using by npm and its: https://registry.npmjs.org/node-sass/-/node-sass-4.14.1.tgz and meteor url is https://github.com/sass/node-sass/releases/download/v4.14.1/darwin-arm64-83_binding.node, therefore It seems to be, that the required file is missing in GitHub.

@hschmaiske …I tried to create example project simple-todos-react, when I will start it, it works, and when I will install fourseven:scss and start, I get the same error.

I am also getting the same error on M1 mac (Node v16) (Meteor 2.7.1) when trying to do meteor add fourseven:scss

1 Like

…Is anybody here, who is using fourseven:scss and have Mac with M1 CPU and meteor works… ?

I am also getting the same error on M1 mac (Node v16) (Meteor 2.7.1) when trying to do meteor add fourseven:scss

Meteor works with Node.js version >= 10 and <= 14.
Node v16 is not supported by Meteor.
https://docs.meteor.com/install.html#prereqs

1 Like

…Is anybody here, who is using fourseven:scss and have Mac with M1 CPU and meteor works… ?

Yes, I’m using M1 here. Do you just have an error when you try to run meteor add fourseven:scss? Because I was able to run that without any problems, and also the app is still running
Which version of Meteor are you using? Try to upgrade to the latest version: 2.7.1 using the npm install -g meteor instead of the curl way.

1 Like

Oh no, I don’t know why I didn’t read that before starting my project. Will meteor support v16 in near future? My whole project is built with node v16. :neutral_face: All other things seem to work as expected.

1 Like

Work is underway to upgrade to Node v16. It’s our top priority at the moment.
Fibers are the blocker for this upgrade.
Replacing them is a major undertaking and is being documented here:
#11505

1 Like

Unless you need node v16 for a specific package, it shouldn’t be a problem to use node v14. Just make sure to remove your node_modules folder and install everything again running meteor npm install

2 Likes

Yes, I’m using M1 here. Do you just have an error when you try to run meteor add fourseven:scss ? Because I was able to run that without any problems, and also the app is still running
Which version of Meteor are you using? Try to upgrade to the latest version: 2.7.1 using the npm install -g meteor instead of the curl way.

@hschmaiske I get error in following cases:

  • meteor start (when meteor wants to download fourseven dependency),
  • meteor add fourseven…
  • meteor update

Same error on existing project from Ubuntu and same error with new project “simple-todos-react” when I will add fourseven dependency.

I have installed meteor through curl, I will try to install with npm and I will let you know, if it helped :slight_smile:

Blockquote Work is underway to upgrade to Node v16. It’s our top priority at the moment.

@hschmaiske …great, thanks a lot :ok_hand:

1 Like

@hschmaiske @mad-coder @minhna THANKS A LOT FOR YOUR HELP!

install meteor through the npm SOLVED the problem… :slight_smile:

But for the better understand, can you tell me why? Meteor installed through the npm is not same like meteor installed with curl?

2 Likes

Glad that it worked :tada:

It doesn’t suppose to have besides that the curl comes with node and the npm you need to have node installed first.
We also have a thread for it on GitHub, Error: missing tool for os.osx.arm64 in meteor-tool@2.7.1 in Mac M1 · Issue #12012 · meteor/meteor · GitHub
He was able to make it work just by installing python2, which does not come by default on M1.

1 Like