Created
November 28, 2014 09:42
-
-
Save tanelih/2e8cfcaeacf1a443edc3 to your computer and use it in GitHub Desktop.
Simple Node.JS provisioning script for Vagrant
This file contains hidden or 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
#!/bin/bash | |
# Vagrant provisioning script for setting up a simple 'nodejs' development | |
# environment. | |
# | |
# > vagrant up && vagrant ssh | |
# > cd <my-synced-folder> && npm install | |
# | |
# If you are also doing 'front-end' development, you might want to add: | |
# gem install sass | |
# npm install -g bower | |
# | |
# Tested on: | |
# ubuntu/trusty32 | |
# ubuntu/trusty64 | |
# | |
# See also: | |
# https://docs.vagrantup.com | |
# https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager | |
curl -sL https://deb.nodesource.com/setup | sudo bash - | |
apt-get update | |
apt-get install -y git nodejs build-essential | |
npm install -g gulp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@leandrw I have the same issue; I'd suggest an
npm install
to virtual directory first, then move to shared.