Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

install-node: Install npm and npx symlinks.

Anders Kaseorgde5282d2cfa5
diff --git a/scripts/lib/install-node b/scripts/lib/install-node
index 798a8946ec6..4f78d5f7ca9 100755
--- a/scripts/lib/install-node
+++ b/scripts/lib/install-node
@@ -55,6 +55,8 @@ if [ "$current_node_version" != "v$node_version" ] || ! [ -L "$node_wrapper_path
# Install node symlink to /usr/local/bin
ln -nsf "$NODE_BIN" /usr/local/bin/node
+ ln -nsf "$(dirname "$NODE_BIN")/npm" /usr/local/bin/npm
+ ln -nsf "$(dirname "$NODE_BIN")/npx" /usr/local/bin/npx
fi
# Work around the fact that apparently sudo doesn't clear the HOME