Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn install fails on macosx 'node-gyp' issue #983

Closed
wd021 opened this issue Feb 10, 2022 · 3 comments
Closed

yarn install fails on macosx 'node-gyp' issue #983

wd021 opened this issue Feb 10, 2022 · 3 comments
Labels
bug Something isn't working testnet-credit Anything related to getting testnet points

Comments

@wd021
Copy link
Contributor

wd021 commented Feb 10, 2022

What happened?

Tried installing ironfish on an old macbook air and ran into the following issue when executing yarn install

Version

No response

Relevant log output

error /Users/simonbob/Documents/ironfish/ironfish/node_modules/mrmr: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments: 
Directory: /Users/simonbob/Documents/ironfish/ironfish/node_modules/mrmr
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.14.0 | darwin | x64
gyp ERR! find Python 
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - executable path is "/usr/bin/python"
gyp ERR! find Python - version is "2.7.10"
gyp ERR! find Python - version is 2.7.10 - should be >=3.6.0
gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
gyp ERR! find Python 
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
gyp ERR! find Python   (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python   npm config set python "/path/to/pythonexecutable"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python 
gyp ERR! configure error 
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack     at PythonFinder.fail (/Users/simonbob/Documents/ironfish/ironfish/node_modules/node-gyp/lib/find-python.js:330:47)
gyp ERR! stack     at PythonFinder.runChecks (/Users/simonbob/Documents/ironfish/ironfish/node_modules/node-gyp/lib/find-python.js:159:21)
gyp ERR! stack     at PythonFinder.<anonymous> (/Users/simonbob/Documents/ironfish/ironfish/node_modules/node-gyp/lib/find-python.js:266:16)
gyp ERR! stack     at PythonFinder.execFileCallback (/Users/simonbob/Documents/ironfish/ironfish/node_modules/node-gyp/lib/find-python.js:297:7)
gyp ERR! stack     at ChildProcess.exithandler (node:child_process:390:7)
gyp ERR! stack     at ChildProcess.emit (node:events:520:28)
gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)
gyp ERR! stack     at Socket.<anonymous> (node:internal/child_process:451:11)
gyp ERR! stack     at Socket.emit (node:events:520:28)
gyp ERR! stack     at Pipe.<anonymous> (node:net:687:12)
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/bin/node" "/Users/simonbob/Documents/ironfish/ironfish/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /Users/simonbob/Documents/ironfish/ironfish/node_modules/mrmr
@wd021 wd021 added the bug Something isn't working label Feb 10, 2022
@wd021
Copy link
Contributor Author

wd021 commented Feb 10, 2022

brew install python works. node-gyp v8.4.1 requires python 3.7+.

PR #985 to update the readme for this.

@leanthebean leanthebean added the testnet-credit Anything related to getting testnet points label Mar 10, 2022
@Lifehack-crypto
Copy link

ubuntu 20.04,
Even with node V16.15.0, npm install fails due to ”node-pre-gyp".
image

@lwisne
Copy link
Contributor

lwisne commented Jul 23, 2022

Are you still having issues here?

@lwisne lwisne closed this as completed Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working testnet-credit Anything related to getting testnet points
Projects
None yet
Development

No branches or pull requests

4 participants