Skip to content

Instantly share code, notes, and snippets.

@romelgomez
Last active November 4, 2018 02:05
Show Gist options
  • Save romelgomez/b7ab21f7954c2e8e4c417943dda8f627 to your computer and use it in GitHub Desktop.
Save romelgomez/b7ab21f7954c2e8e4c417943dda8f627 to your computer and use it in GitHub Desktop.
Install node ASAP
#!/bin/bash
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
if [[ ! -d "$NODE_PATH" ]]; then
export NODE_PATH=/usr/local/lib/node_modules
echo 'export NODE_PATH=/usr/local/lib/node_modules' >> ~/.bashrc
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment