mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 09:39:51 +00:00
fix(node): remove deprecated 'scripts-prepend-node-path' option
This commit is contained in:
@@ -31,8 +31,6 @@ Installing node via webi will:
|
||||
[Node Releases API](https://nodejs.org/dist/index.tab)
|
||||
- download and unpack to `$HOME/.local/opt/node/`
|
||||
- update your `PATH` in `$HOME/.config/envman/PATH.env`
|
||||
- run `npm config set scripts-prepend-node-path=true`
|
||||
- (prevents conflicts with other installed node versions)
|
||||
- absolutely leave system file permissions alone
|
||||
- (no dreaded `sudo npm` permission errors)
|
||||
|
||||
|
||||
@@ -40,8 +40,5 @@ echo "Copying into '$Env:USERPROFILE\.local\opt\$Env:PKG_NAME' from '$Env:USERPR
|
||||
Remove-Item -Path "$Env:USERPROFILE\.local\opt\$Env:PKG_NAME" -Recurse -ErrorAction Ignore
|
||||
Copy-Item -Path "$Env:USERPROFILE\.local\opt\$Env:PKG_NAME-v$Env:WEBI_VERSION" -Destination "$Env:USERPROFILE\.local\opt\$Env:PKG_NAME" -Recurse
|
||||
|
||||
# make npm not act stupid about which node to use... ugh (this should be the default)
|
||||
& .\.local\opt\node\npm.cmd --scripts-prepend-node-path=true config set scripts-prepend-node-path true
|
||||
|
||||
# Add to path
|
||||
& "$Env:USERPROFILE\.local\bin\pathman.exe" add ~/.local/opt/node
|
||||
|
||||
@@ -37,9 +37,6 @@ pkg_link() {
|
||||
|
||||
# ln -s "$HOME/.local/opt/node-v14.4.0" "$HOME/.local/opt/node"
|
||||
ln -s "$pkg_src" "$pkg_dst"
|
||||
|
||||
# Node bugfix: use the correct version of node, even if PATH has a conflict
|
||||
"$pkg_src"/bin/node "$pkg_src"/bin/npm config set scripts-prepend-node-path=true
|
||||
}
|
||||
|
||||
pkg_done_message() {
|
||||
|
||||
Reference in New Issue
Block a user