fix(node): remove deprecated 'scripts-prepend-node-path' option

This commit is contained in:
AJ ONeal
2023-03-07 09:04:41 +00:00
parent 51c7c20c59
commit 2a081b527b
3 changed files with 0 additions and 8 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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() {