From ba5def5ae66689893725d6c1d6e76239ed33e87e Mon Sep 17 00:00:00 2001 From: Richard Kuhnt Date: Thu, 1 Jun 2017 23:07:30 +0200 Subject: [PATCH] Revert npm config usage for changing cache and prefix values Would overwrite %USERPROFILE%/.npmrc if two or more nodejs version get installed via scoop --- nodejs-lts.json | 4 ++-- nodejs.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nodejs-lts.json b/nodejs-lts.json index 8c7f609be3..ec12dcb266 100644 --- a/nodejs-lts.json +++ b/nodejs-lts.json @@ -22,8 +22,8 @@ "bin" ], "post_install": " - npm config set cache \"$persist_dir\\cache\" - npm config set prefix \"$persist_dir\\bin\" + # Set npm prefix to install modules inside bin and npm cache so they persist + Set-Content -Value \"prefix=$persist_dir\\bin`ncache=$persist_dir\\cache\" -Path $dir\\node_modules\\npm\\npmrc ", "checkver": { "url": "https://nodejs.org/en/download/", diff --git a/nodejs.json b/nodejs.json index 0e8a747d7b..92f1a307c5 100644 --- a/nodejs.json +++ b/nodejs.json @@ -22,8 +22,8 @@ "bin" ], "post_install": " - npm config set cache \"$persist_dir\\cache\" - npm config set prefix \"$persist_dir\\bin\" + # Set npm prefix to install modules inside bin and npm cache so they persist + Set-Content -Value \"prefix=$persist_dir\\bin`ncache=$persist_dir\\cache\" -Path $dir\\node_modules\\npm\\npmrc ", "checkver": { "url": "https://nodejs.org/en/download/current/",