'NPM node-sass build fails

I have referenced this, this, this, this, and this. I've tried uninstalling and reinstalling node, n, npm, and nvm. I was able to get it to run on node version 14, however I need to use node version 16.13.

This seems to be telling me node version 16.13 is incompatible with node-sass v6.0.1. However, my team runs these versions without issue. I need to run the same versions as my team otherwise I can't really contribute.

Error output is here.



Solution 1:[1]

It looks like your running on the newer Apple Silicon from the arm64 arch lines in the log. Node-sass does not currently support that architecture. I'm guessing the sudo might have dropped you down into that Intel emulation layer and faked it out enough to work.

Solution 2:[2]

I don't know how I didn't figure this out sooner.

If anyone ends up looking for this answer: I did move past this error with the sudo command

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 nschonni
Solution 2 Brayheart