Skip to content

Instantly share code, notes, and snippets.

@tataue
Last active October 7, 2021 14:01
Show Gist options
  • Save tataue/b7d23285117f6053eda3270ea508def8 to your computer and use it in GitHub Desktop.
Save tataue/b7d23285117f6053eda3270ea508def8 to your computer and use it in GitHub Desktop.
[node-gyp offline]#node #node-gyp

方法一:

  1. 下载对应版本headers
  2. nodedir=xxxx加入npmrc环境变量中

方法二:

node-gyp install —tarball /path/to/node-x.y.z-headers.tar.gz rebuild

方法三:

npm set nodedir=xxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment