Skip to content

Instantly share code, notes, and snippets.

@todd-a-jacobs
Created December 21, 2014 17:47
Show Gist options
  • Save todd-a-jacobs/9385118f6fbdfb528220 to your computer and use it in GitHub Desktop.
Save todd-a-jacobs/9385118f6fbdfb528220 to your computer and use it in GitHub Desktop.
Install ember-cli and dependencies without -g flag.
#!/usr/bin/env bash
npm install ember-cli
npm install bower
npm install phantomjs
rcfile="$HOME/.bashrc"
if ! grep -Fq node_modules "$rcfile"; then
echo 'export PATH="$PATH:$HOME/node_modules/.bin"' | tee -a "$rcfile"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment