Skip to content

Instantly share code, notes, and snippets.

@zhaiduo
Last active November 16, 2018 08:02
Show Gist options
  • Save zhaiduo/9ec7e2da58ed06d8bd209e54346a9d87 to your computer and use it in GitHub Desktop.
Save zhaiduo/9ec7e2da58ed06d8bd209e54346a9d87 to your computer and use it in GitHub Desktop.
npm problems
### NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
add the following to ~/.zshrc
```
export NODEJS_ORG_MIRROR=${NODEJS_ORG_MIRROR-$NVM_NODEJS_ORG_MIRROR}
export IOJS_ORG_MIRROR=${IOJS_ORG_MIRROR-$NVM_IOJS_ORG_MIRROR}
```
. ~/.zshrc
### Error: Python executable "/usr/local/bin/python" is v3.6.4, which is not supported by gyp.
npm install --python=/usr/bin/python2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment