You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to set up the project using yarn install and getting the following failure to execute node-gyp:
error /Users/burhan/projects/semver-check/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: /Users/burhan/projects/semver-check/node_modules/node-sass
Output:
Building: /opt/homebrew/Cellar/node/21.1.0/bin/node /Users/burhan/projects/semver-check/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --l
ibsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli '/opt/homebrew/Cellar/node/21.1.0/bin/node',
gyp verb cli '/Users/burhan/projects/semver-check/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 [email protected]
gyp info using [email protected] | 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 "python3" in the PATH
gyp verb `which` succeeded python3 /opt/homebrew/bin/python3
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /opt/homebrew/bin/python3 -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 (node:child_process:422:12)
gyp ERR! stack at ChildProcess.emit (node:events:515:28)
gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
gyp ERR! stack at Socket.<anonymous> (node:internal/child_process:457:11)
gyp ERR! stack at Socket.emit (node:events:515:28)
gyp ERR! stack at Pipe.<anonymous> (node:net:337:12)
gyp ERR! System Darwin 23.0.0
gyp ERR! command "/opt/homebrew/Cellar/node/21.1.0/bin/node" "/Users/burhan/projects/semver-check/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/burhan/projects/semver-check/node_modules/node-sass
gyp ERR! node -v v21.1.0
gyp ERR! node-gyp -v v3.8.0
The problem is that it is trying to run a bit of python 2 syntax which is an error in python 3. Python 2 was EOL in January 2020 and was actually removed from the OS I am using (macOS) at the start of 2022.
The version of node-gyp in use in the project is 3.8.0 which is pretty old (2018). The version at the time of writing is 10.0.1.
npm explain node-gyp gives me this:
[email protected] dev
node_modules/node-gyp
node-gyp@"^3.8.0" from [email protected]
node_modules/node-sass
node-sass@"^4.14.1" from [email protected]
node_modules/node-sass-chokidar
dev node-sass-chokidar@"^1.3.3" from the root project
peerOptional node-sass@"^4.0.0" from [email protected]
node_modules/sass-loader
sass-loader@"8.0.2" from [email protected]
node_modules/react-scripts
dev react-scripts@"3.4.1" from the root project
Looks like upgrading node-sass-chokidar and react-scripts might fix this.
The text was updated successfully, but these errors were encountered:
I am trying to set up the project using
yarn install
and getting the following failure to executenode-gyp
:The problem is that it is trying to run a bit of python 2 syntax which is an error in python 3. Python 2 was EOL in January 2020 and was actually removed from the OS I am using (macOS) at the start of 2022.
The version of
node-gyp
in use in the project is 3.8.0 which is pretty old (2018). The version at the time of writing is 10.0.1.npm explain node-gyp
gives me this:Looks like upgrading
node-sass-chokidar
andreact-scripts
might fix this.The text was updated successfully, but these errors were encountered: