Files
habitica/vagrant_scripts/install_node.sh
yugensoft 4f305bd505 Updated vagrant script to fix bcrypt missing error (#8670)
* Updated npm version to match http://habitica.wikia.com/wiki/Setting_up_Habitica_Locally; added npm-pre-gyp dependency necessary for bcrypt to install

* changed npm version as per request https://github.com/HabitRPG/habitica/pull/8670#discussion_r112010106
2017-05-07 07:57:50 +10:00

23 lines
583 B
Bash

#!/bin/bash
echo Installing nvm...
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | NVM_DIR="/home/vagrant/.nvm" PROFILE="/home/vagrant/.profile" bash
echo "source /home/vagrant/.nvm/nvm.sh" >> /home/vagrant/.profile
echo "nvm install" >> /home/vagrant/.profile
chown -R vagrant:vagrant /home/vagrant/.nvm
source /home/vagrant/.profile
echo Setting up node...
cd /vagrant
nvm install
nvm use
nvm alias default current
echo Update npm...
npm install -g npm@4
echo Installing global modules...
npm install -g gulp bower grunt-cli mocha node-pre-gyp