From 923c296ecd90505c011936754fb24ba122738893 Mon Sep 17 00:00:00 2001 From: CloverGit Date: Thu, 24 Oct 2024 09:42:54 +0800 Subject: [PATCH 1/2] fix: Update npm.json --- programs/npm.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/npm.json b/programs/npm.json index 27c03bce..5ee311ab 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" }, From 3b4e876340da5434d419a1615d1c11c3021a79b4 Mon Sep 17 00:00:00 2001 From: b3nj5m1n <47924309+b3nj5m1n@users.noreply.github.com> Date: Sat, 26 Oct 2024 16:51:14 +0200 Subject: [PATCH 2/2] Update programs/npm.json --- programs/npm.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/npm.json b/programs/npm.json index 5ee311ab..e0b9959c 100644 --- a/programs/npm.json +++ b/programs/npm.json @@ -6,7 +6,7 @@ "help": "Export the following environment variables:\n\n```bash\nexport NPM_CONFIG_CACHE=\"$XDG_CACHE_HOME\"/npm\n```\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" + "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" },