Skip to content

Instantly share code, notes, and snippets.

@Benjamin-K
Created November 18, 2016 16:45
Show Gist options
  • Save Benjamin-K/8ae06a91dfc8bfaf531999dd83211025 to your computer and use it in GitHub Desktop.
Save Benjamin-K/8ae06a91dfc8bfaf531999dd83211025 to your computer and use it in GitHub Desktop.
Change Version of Node
#!/bin/bash
# Clean the npm cache
sudo npm cache clean -f
# Install node globally
sudo npm install -g n
# Install the desired version of node (here stable, could also be a version like 4.4.2 etc)
sudo n stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment