diff options
Diffstat (limited to 'arch-base-nodejs-0.12.9/bootstrap_base_nodejs.sh')
| -rwxr-xr-x | arch-base-nodejs-0.12.9/bootstrap_base_nodejs.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/arch-base-nodejs-0.12.9/bootstrap_base_nodejs.sh b/arch-base-nodejs-0.12.9/bootstrap_base_nodejs.sh new file mode 100755 index 0000000..fbbe38b --- /dev/null +++ b/arch-base-nodejs-0.12.9/bootstrap_base_nodejs.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +NVM_DIR=/root/.nvm +NODE_VERSION=v0.12.9 + +[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" + +## create symlink to python +cd /usr/bin && ln -s python2 python +cd + +nvm install ${NODE_VERSION} +nvm alias default ${NODE_VERSION} +nvm use default + +## Set path +export PATH=$PATH:`npm bin -g` + +echo ">>> installing pm2" +npm install -g pm2 + +echo ">>> installing grunt-cli" +npm install -g grunt-cli + +echo ">>> installing gulp" +npm install -g gulp + +echo ">>> installing bower" +npm install -g bower + +echo ">>> installing sails" +npm install -g sails --ignore-scripts |
