Created
April 27, 2020 22:40
-
-
Save kriscooke/09ecfdb7160a72bae7240662bfc8395e to your computer and use it in GitHub Desktop.
Prevent node-gyp from having to fetch node headers for rebuild during installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://github.com/nodejs/node-gyp/issues/812 | |
npm install --nodedir $(which node) | |
# OR, in ~/.bash_profile: | |
npm_config_nodedir=$(which node) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment