From: CloverGit Date: Sat, 26 Oct 2024 14:51:44 +0000 (+0800) Subject: fix: Update npm.json (#441) X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/commitdiff_plain/c8d401d84f4061d6f72468e10a8d3c98b1246f5c?ds=inline fix: Update npm.json (#441) * fix: Update npm.json * Update programs/npm.json --------- Co-authored-by: b3nj5m1n <47924309+b3nj5m1n@users.noreply.github.com> --- diff --git a/programs/npm.json b/programs/npm.json index 27c03bc..e0b9959 100644 --- a/programs/npm.json +++ b/programs/npm.json @@ -3,10 +3,10 @@ { "path": "$HOME/.node-gyp", "movable": true, - "help": "You need to put the following into your npmrc:\n\n```\ncache=${XDG_CACHE_HOME}/npm\n```\n" + "help": "Export the following environment variables:\n\n```bash\nexport NPM_CONFIG_CACHE=\"$XDG_CACHE_HOME\"/npm\n```\n" }, { - "help": "You need to put the following into your npmrc:\n\n```\nprefix=${XDG_DATA_HOME}/npm\ncache=${XDG_CACHE_HOME}/npm\ninit-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js\ntmp=${XDG_RUNTIME_DIR}/npm\n```\n\n_Note: the `tmp` option has been removed in more recent versions of npm, including it will generate a warning._\n", + "help": "Export the following environment variables:\n\n```bash\nexport NPM_CONFIG_INIT_MODULE=\"$XDG_CONFIG_HOME\"/npm/config/npm-init.js\nexport NPM_CONFIG_CACHE=\"$XDG_CACHE_HOME\"/npm\nexport NPM_CONFIG_TMP=\"$XDG_RUNTIME_DIR\"/npm\n```\n", "movable": true, "path": "$HOME/.npm" },