Skip to content

Instantly share code, notes, and snippets.

@johnbender johnbender/Vagrantfile.rb
Last active Dec 22, 2015

What would you like to do?
If you'd rather not install Node.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| = "precise64"
config.vm.provision(:shell, :inline => <<-CMD)
# exit on error
set -e
echo "Installing node and deps ..."
if ! which node; then
apt-get install -y build-essential
apt-get install -y python-software-properties
add-apt-repository ppa:chris-lea/node.js
apt-get update
apt-get install -y nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.