1

I am very new to AngularJS and trying to test a piece of functionality using Karma. I installed node.js and when I open it and enter the following it doesn't do anything.

$ npm install -g karma

Please anyone can help me how can I achieve this.

4
  • 2
    Which operating system? How did you install node + npm? I doubt there will be no error. Commented May 21, 2013 at 19:14
  • And you didn't typed the command into the node.js repl? Commented May 21, 2013 at 19:15
  • Its Windows 7, i didn't get any error while installing. I typed the command $ npm install -g karma, but it does ..... Commented May 21, 2013 at 19:32
  • 2
    do it without the $ just npm install -g karma Commented May 21, 2013 at 21:37

2 Answers 2

1

I ran into a similar issue. I believe I wrote a fairly complete blob post about how to Setup AngularJS, Angular Seed, Node.js and Karma. This post describes how to install Karma on a windows computer using the command prompt.

http://bardevblog.wordpress.com/2013/07/28/setting-up-angularjs-angular-seed-node-js-and-karma/

On Windows, you can install Karma from the Command Prompt. Do not install it from within Node.js.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

0

Steps to install Karma 1.install nodejs from https://nodejs.org/download/ site appropriate for your system 2.open command prompt and traverse to your project path 'C:\project folder\' 3.type and run this in command prompt ->npm install karma --save-dev 4.type and run this in command prompt ->npm install -g karma-cli

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.