install-node: Install npm and npx symlinks.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-10-27 20:48:54 -07:00 committed by Tim Abbott
parent 142de0f670
commit de5282d2cf
1 changed files with 2 additions and 0 deletions

View File

@ -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