Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Step-by-step guide

Within Kalastack

  1. run these commands in order:

    Code Block
    $ sudo apt-get install software-properties-common
    
    $ sudo apt-get install python-software-properties
    
    $ sudo apt-add-repository ppa:chris-lea/node.js
    
    $ sudo apt-get update
  2. Then Use this command to get the latest version of node.js
    1. sudo apt-get install nodejs
    2. (If you have problems): John needed to designate a version; this shouldn't be necessary, but if you're having problems, try finding the latest version...
      1. sudo apt-cache showpkg nodejs
      2. ...then putting that in after the 'nodejs=' in sudo apt-get install nodejs (ex: sudo apt-get install nodejs=0.10.26-1chl1~precise1)
  3. Then continue on running:
    1. npm -g install grunt (installs grunt globally on your Kalabox) (See #3 at bottom of page if it wants you to install as root/if you have problems)
      1. Watch the installer,this will have your Grunt Version, its the 4th line down from start, mine was:

      2. npm http GET http://registry.npmjs.org/grunt/-/grunt-0.4.4.tgz

    2. (If you have problems): John needed to install npm separate from nodejs; if "npm --version" doesn't return something, you may need to execute the following:

      1. sudo apt-get install npm
      2. npm config set registry http://registry.npmjs.org/
  4. cd into your project folder and create a file called package.json

    1. open with your editor (sublime), put this in there:

      Code Block
      {
      "name": "THE PROJECT NAME",
      "version": "0.1.0",
      "devDependencies": {
      "grunt": "~0.4.4" (or whatever version is above)
      }
      }
  5. Then from the CLI again run while in your project folder

    Code Block
    $ npm install
    
    $ sudo npm install -g grunt-cli

YOU can also follow to tutorial here on how to use Grunt, dont really follow the install stuff except when you get to concatenating files as this was written for a MAC:

...