if you install a package with -g then the respective command should be in 
your PATH, so you have to execute the karma command. just type "karma", not 
"node karma". with the latter you're calling node and providing it with a 
name, which is interpreted as a file in your cwd, which is of course not 
there.

Am Donnerstag, 12. Juni 2014 21:59:13 UTC+2 schrieb Michael Mossey:
>
> I'm on Windows 7, and I've installed node and npm via the MSI on the 
> nodejs website. I installed several modules including karma using npm, and 
> when I installed them I used the -g option. npm put the modules in 
> c:\User\Mike\AppData\Roaming\npm\node_modules. Now if I run a command like 
> "node karma" I get
>
> Error: cannot find module at <current working directory>\karma
>
> I've set NODE_PATH to c:\User\Mike\AppData\Roaming\npm\node_modules (and 
> also tried dropping the node_modules from the end) and I get the same 
> error. It's like it's ignoring NODE_PATH entirely.
>
> Any ideas?
> Mike
>
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/764501c2-dab3-47de-a7fa-e0d0596ff292%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to