Has anyone managed to get a vagrant box setup inside a vagrant box?
I seem to just get loads and loads of issues around permissions or user context.
I am using NVM to stop the necessity to use sudo with NPM but that’s still not working!
here is my bootstrap.sh (ran as a shell provisioner from the Vagrantfile):
sudo -u vagrant curl https://raw.githubusercontent.com/creationix/nvm/v0.17.2/install.sh | bash sudo -u vagrant source ~/.nvm/nvm.sh sudo -u vagrant nvm install 0.11.14 cd /vagrant/sonatribe-ui sudo -u vagrant npm install -g --save-dev bower sudo -u vagrant npm install --save-dev ember-cli sudo -u vagrant npm install sudo -u vagrant bower install
sudo -u vagrant emmits “npm not found” type errors, running without seems to run fine but then when I go into the box as vagrant I get ‘npm not found’ errors again…
Has anyone successfully managed to get this working?