Skip to content

Commit

Permalink
fix(nms): clean up node installation with make
Browse files Browse the repository at this point in the history
Signed-off-by: Fritz Lehnert <13189449+Neudrino@users.noreply.github.com>
  • Loading branch information
Neudrino committed Jul 29, 2022
1 parent c9bffb1 commit a016840
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions orc8r/cloud/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -174,29 +174,12 @@ else ifeq ($(OS_NAME),Darwin)
$(MAKE) nms_prereqs_osx
endif

nms_prereqs_ubuntu: nms_node_ubuntu
NODE="$(shell which nodejs)"; ln -s $$NODE /usr/local/bin/node
# update nodejs to latest
nms_prereqs_ubuntu:
curl -sL https://deb.nodesource.com/setup_lts.x | bash -
apt-get install -y nodejs
# get codegen dependency
apt install -y nodejs
npm install --global yarn
yarn

nms_node_ubuntu:
# install pre-reqs
apt update
# Handle certificate verification
apt-get install -y libgnutls30
# Get a newer version of nodejs
curl -fSL https://deb.nodesource.com/setup_14.x | bash -
apt-get install -y nodejs
# And now install npm
apt install -y aptitude
aptitude install -y npm
# symlink nodejs executable
mkdir -p /usr/local/bin

nms_prereqs_osx:
node --version || brew install node
npm --version || brew install npm
Expand Down

0 comments on commit a016840

Please sign in to comment.