mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-06 16:51:20 +00:00
Persistence: prevent NPM from overwriting node_modules by setting read-only attribute on the persisted directory junction.
This commit is contained in:
parent
5bfd9daff8
commit
bea5cd1827
@ -13,9 +13,10 @@
|
||||
}
|
||||
},
|
||||
"env_add_path": "nodejs",
|
||||
"persist": "nodejs/node_modules",
|
||||
"post_install": "
|
||||
# Remove npmrc that makes global modules get installed in AppData\\Roaming\\npm
|
||||
rm $dir\\nodejs\\node_modules\\npm\\npmrc
|
||||
if(test-path $dir\\nodejs\\node_modules\\npm\\npmrc) { rm $dir\\nodejs\\node_modules\\npm\\npmrc }
|
||||
npm update -g",
|
||||
"checkver": {
|
||||
"url": "https://nodejs.org/en/download/current/",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user