Cannot install phantomJS in Karma

gruntjs, karma-runner, phantomjs

Solution

After some research I realized that I needed to run:

npm install -g karma@canary phantomjs karma-phantomjs-launcher

Once I ran that I went back into my karma-unit.tpl.js file and instead of karma-phantomjs, I changed this to karma-phantomjs-launcher.

Now when I execute a command like grunt build, I get no error regarding phantomJS

Problem

``` WARN [config]: config.configure() is deprecated, please use config.set() instead. WARN [plugin]: Cannot find plugin "karma-phantomjs". Did you forget to install it ? npm install karma-phantomjs --save-dev INFO [karma]: Karma v0.10.2 server started at http://localhost:9018/ WARN [launcher]: Can not load "PhantomJS", it is not registered! Perhaps you are missing some plugin? ``` Getting this error. When running npm install karma-phantomjs --save-dev I get an error. ``` npm ERR! 404 'karma-phantomjs' is not in the npm registry. ``` I installed karma-phantomjs-launcher --save-dev but i still get an error when running grunt watch. Anyone else run into this issue?

Original source