Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
node-gyp を介してカスタム ノード tarball を使用してノード モジュールを構築したいのですが、環境変数または node-gyp または npm の構成ファイルを介して設定する方法はありますか?
現在、node-gyp は tarball の URL の設定をサポートしていませんが、環境変数または構成ファイルを介して disturl を設定できます。
~/.npmrcで、 disturl を設定するために追加できdisturl=...ます。また、環境変数として設定することもできnpm_config_disturl、npm 構成変数として扱われます。
disturl=...
npm_config_disturl
を使用するとdisturl、node-gyptarball の URL が取得されます
disturl
node-gyp