Skip to content

Instantly share code, notes, and snippets.

@leejsinclair
Created July 7, 2013 08:25
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 leejsinclair/5942793 to your computer and use it in GitHub Desktop.
Save leejsinclair/5942793 to your computer and use it in GitHub Desktop.
I spent several hours the other day attempting to get yeoman installed and working properly. I came across numerous issues, so in the end I decided to start from scratch with the most up-to-date versions of all software.

How I got yeoman to scafold an AngularJS application

Updated: 30 June 2013

Step 1: Created a new VM running Ubuntu 13.04

Step 2: Ensure openssh and a c compiler are installed

Step 3: Installed node 0.10.12

mkdir ~/build
cd build
wget http://nodejs.org/dist/v0.10.12/node-v0.10.12.tar.gz
tar zxvf node-v0.10.12.tar.gz
cd node-v0.10.12
./configure
make && sudo make install

Step 4: Install yo

sudo npm install -g yo
sudo npm install -g generator-angular generator-karma

Step 5: Create test app

mkdir -p ~/projects/myApp
cd ~/projects/myApp
yo angular

Step 5: Edit Gruntfile.js to allow access from IP addresses other than localhost

pico Gruntfile.js
[ctrl]+[w] localhost (change hostname value to "0.0.0.0")
[ctrl]+[o]
[ctrl]+[x]

Step 6: Run projects

grunt server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment