Skip to content

Instantly share code, notes, and snippets.

@johnbender
Last active December 22, 2015 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnbender/6396276 to your computer and use it in GitHub Desktop.
Save johnbender/6396276 to your computer and use it in GitHub Desktop.
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!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "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
fi
CMD
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment