mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-11 03:01:22 +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"
|
"bin"
|
||||||
],
|
],
|
||||||
"post_install": "
|
"post_install": "
|
||||||
npm config set cache \"$persist_dir\\cache\"
|
# Set npm prefix to install modules inside bin and npm cache so they persist
|
||||||
npm config set prefix \"$persist_dir\\bin\"
|
Set-Content -Value \"prefix=$persist_dir\\bin`ncache=$persist_dir\\cache\" -Path $dir\\node_modules\\npm\\npmrc
|
||||||
",
|
",
|
||||||
"checkver": {
|
"checkver": {
|
||||||
"url": "https://nodejs.org/en/download/",
|
"url": "https://nodejs.org/en/download/",
|
||||||
|
|||||||
@ -22,8 +22,8 @@
|
|||||||
"bin"
|
"bin"
|
||||||
],
|
],
|
||||||
"post_install": "
|
"post_install": "
|
||||||
npm config set cache \"$persist_dir\\cache\"
|
# Set npm prefix to install modules inside bin and npm cache so they persist
|
||||||
npm config set prefix \"$persist_dir\\bin\"
|
Set-Content -Value \"prefix=$persist_dir\\bin`ncache=$persist_dir\\cache\" -Path $dir\\node_modules\\npm\\npmrc
|
||||||
",
|
",
|
||||||
"checkver": {
|
"checkver": {
|
||||||
"url": "https://nodejs.org/en/download/current/",
|
"url": "https://nodejs.org/en/download/current/",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user