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/?a=commitdiff_plain;h=605b97da9743af73f07328540b4279d93a10a8fb;hp=c053a71fdd4f623e04c358822f0e63b27669a5e5;p=webi-installers%2F.git 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() {