From 2a081b527bb6319176b0e42e749684e2591cf5f6 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 7 Mar 2023 09:04:41 +0000 Subject: [PATCH] fix(node): remove deprecated 'scripts-prepend-node-path' option --- node/README.md | 2 -- node/install.ps1 | 3 --- node/install.sh | 3 --- 3 files changed, 8 deletions(-) diff --git a/node/README.md b/node/README.md index d71962f..bc871e0 100644 --- a/node/README.md +++ b/node/README.md @@ -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) diff --git a/node/install.ps1 b/node/install.ps1 index 70dc890..e7e4a70 100644 --- a/node/install.ps1 +++ b/node/install.ps1 @@ -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 diff --git a/node/install.sh b/node/install.sh index 9381dde..a102c81 100644 --- a/node/install.sh +++ b/node/install.sh @@ -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() {