Skip to content

node-gyp-build error bootstrapping truffle #5518

Discussion options

You must be logged in to vote

I was able to resolve this issue following these troubleshooting steps:

  1. Ensure you have installed node-gyp globally:
$ npm install -g node-gyp
  1. Ensure you have a version of Python 2.x accessible. If you use pyenv, you can see what version you have installed with:
$ pyenv global
3.10.4

If a 2.x version is not listed like the example above, find and install the latest version. Example:

$ pyenv install 2.7.18

You should now find it in the versions list:

$ pyenv versions
system
2.7.18
* 3.10.4 (set by /Users/yourname/.pyenv/version)

Now add the new version to your version file: ~/.pyenv/version

2.7.18
3.10.4

You should now see that it is globally accessible:

$ pyenv versions
system
* 2.7.1…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kevinweaver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant