Skip to content

Instantly share code, notes, and snippets.

@alloyking
Created March 19, 2015 13:16
Show Gist options
  • Save alloyking/fdccd05b1de72d0d0c37 to your computer and use it in GitHub Desktop.
Save alloyking/fdccd05b1de72d0d0c37 to your computer and use it in GitHub Desktop.
install nodejs & npm on beanstalk aws
commands:
01_node_install:
# run this command from /tmp directory
cwd: /tmp
# don't run the command if node is already installed (file /usr/bin/node exists)
test: '[ ! -f /usr/bin/node ] && echo "node not installed"'
# install from epel repository
# flag -y for no-interaction installation
command: 'yum install -y nodejs --enablerepo=epel'
02_npm_install:
cwd: /tmp
command: 'yum install -y npm --enablerepo=epel'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment