mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-07 01:01:22 +00:00
NodeJS without $persist_dir in env_add_path / mark persist dirs as read-only (#1)
* A NodeJS install with persistence that doesn't use $persist_dir variable in manifest * persist nodejs fix npm updating itself * A NodeJS install with persistence that doesn't use $persist_dir variable in manifest * Fix 'Access is denied' error removing 'current' directory junction. * change nodejs install behaviour to match upstream installer `npm update -g` has been remove because it has no effect on the installed npm version and does not match the official installer behaviour.
This commit is contained in:
parent
423fd3cb88
commit
d93f98fd1d
10
nodejs.json
10
nodejs.json
@ -12,12 +12,12 @@
|
||||
"hash": "2888f2303bcaa35f05b3dce7cbfee58af77dcea6bed4b9ff549b181c65eb4565"
|
||||
}
|
||||
},
|
||||
"env_add_path": ["nodejs", "$persist_dir"],
|
||||
"persist": "nodejs/node_modules",
|
||||
"extract_dir": "nodejs",
|
||||
"persist": [ "bin" ],
|
||||
"env_add_path": [ ".", "bin" ],
|
||||
"post_install": "
|
||||
# Set npm prefix to install module inside $persist_dir
|
||||
Set-Content -Value \"prefix=$persist_dir\" -Path $persist_dir\\node_modules\\npm\\npmrc
|
||||
npm update -g",
|
||||
# Set npm prefix to install modules inside bin
|
||||
Set-Content -Value \"prefix=$dir\\bin\" -Path $dir\\node_modules\\npm\\npmrc",
|
||||
"checkver": {
|
||||
"url": "https://nodejs.org/en/download/current/",
|
||||
"re": "Current version: <strong>v([\\d.]+)</strong>"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user