After running npm i, I encountered the following error message which I am unsure how to resolve. I tried reinstalling Node.js, Python, and Pyenv, but the issue persists. Interestingly, the same version of Node.js on Windows runs the project without any problems. However, when attempting to run the project on my Mac M1 Pro, it crashes.
> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="47292823226a3426343407736976736976">[email protected]</a> install /Users/nicetea/work/repos/planit-frontend/node_modules/node-sass
> node scripts/install.js
`Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/darwin-arm64-83_binding.node
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
> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4e20212a2b633d2f3d3d0e7a607f7a607f">[email protected]</a> postinstall /Users/nicetea/work/repos/planit-frontend/node_modules/node-sass
> node scripts/build.js
Building: /Users/nicetea/.nvm/versions/node/v14.21.3/bin/node /Users/nicetea/work/repos/planit-frontend/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli '/Users/nicetea/.nvm/versions/node/v14.21.3/bin/node',
gyp verb cli '/Users/nicetea/work/repos/planit-frontend/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 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="98f6f7fcfdb5ffe1e8d8abb6a0b6a8">[email protected]</a>
gyp info using <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aac4c5cecfea9b9e84989b8499">[email protected]</a> | 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.10" in the PATH
gyp verb `which` succeeded /opt/homebrew/bin/python3.10 /opt/homebrew/bin/python3.10
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /opt/homebrew/bin/python3.10 -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
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:1088:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5)
gyp ERR! System Darwin 23.3.0
gyp ERR! command "/Users/nicetea/.nvm/versions/node/v14.21.3/bin/node" "/Users/nicetea/work/repos/planit-frontend/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/nicetea/work/repos/planit-frontend/node_modules/node-sass
gyp ERR! node -v v14.21.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1