Revert npm config usage for changing cache and prefix values

Would overwrite %USERPROFILE%/.npmrc if two or more nodejs version get installed via scoop
This commit is contained in:
Richard Kuhnt 2017-06-01 23:07:30 +02:00
parent 9d62ec4b83
commit ba5def5ae6
2 changed files with 4 additions and 4 deletions

View File

@ -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/",

View File

@ -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/",