mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-10 10:41:28 +00:00
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:
parent
9d62ec4b83
commit
ba5def5ae6
@ -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/",
|
||||
|
||||
@ -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/",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user