Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
fastest idempotent ubuntu nodejs install
# for some reason npm does not get installed until removing and reinstalling node
add-apt-repository -y ppa:chris-lea/node.js \
&& apt-get update \
&& apt-get install -y nodejs=$version* \
&& apt-get remove -y nodejs \
&& apt-get install -y nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.