Chariot Training Classes

Training Courses

I run Chariot's training and mentoring services. We provide training in AngularJS, HTML5, Spring, Hibernate, Maven, Scala, and more.

Chariot Education Services

Technology

Chariot Emerging Tech

Learn about upcoming technologies and trends from my colleagues at Chariot Solutions.

Resources

Chariot Conferences

Podcasts

« Ubuntu on EFI-based Surface Pro 3 - My thoughts... | Main | Coming up May 22-23 - AngularJS Training at Chariot Solutions »
Tuesday
May202014

Get your Karma back with NVM

Have you noticed that the command-line Karma runner suddenly isn't being put in the NodeJS bin directory? Yeah, me too. For people with a static NodeJS directory, installed via a package manager or hard install, you can just add this to the path:

   path-to-nvm/lib/node_modules/karma/bin

But what if you use NVM? Especially on Linux and Mac, you have a pretty cool option, especially if you use a 'default' alias for your current node installation. Put this in your .bashrc script, after your source of the nvm.sh script:

   export KARMA_DIR=~/.nvm/v`cat \
     ~/.nvm/alias/default`/lib/node_modules/karma/bin
   export PATH=$KARMA_DIR:$PATH

Then you're good to go!

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>