Created
May 19, 2015 15:10
-
-
Save xynova/7b0637e0568fd14ef8f1 to your computer and use it in GitHub Desktop.
Example of how to do idempotent apt nodejs package install and then node module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg -s nodejs &> /dev/null || { | |
sudo apt-get -y nodejs npm | |
ln -s /usr/bin/nodejs /usr/bin/node | |
} | |
which bower || { | |
sudo npm install -g bower | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment