From 605b97da9743af73f07328540b4279d93a10a8fb Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 16 Jun 2020 22:19:22 +0000 Subject: [PATCH] bugfix node npm version mismatches --- node/install.sh | 3 +++ 1 file changed, 3 insertions(+) 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() { -- 2.25.1