From: AJ ONeal Date: Tue, 16 Jun 2020 22:19:22 +0000 (+0000) Subject: bugfix node npm version mismatches X-Git-Url: https://git.josue.xyz/?p=webi-installers%2F.git;a=commitdiff_plain;h=605b97da9743af73f07328540b4279d93a10a8fb bugfix node npm version mismatches --- diff --git a/node/install.sh b/node/install.sh index 2a9eb86..4dd6655 100644 --- a/node/install.sh +++ b/node/install.sh @@ -34,6 +34,9 @@ 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() {