The install should add

 c:\User\Mike\AppData\Roaming\npm\node_modules

to your PATH

If it is not in your PATH (not NODE_PATH), add it manually

Angel "Java" Lopez
@ajlopez



On Fri, Jun 13, 2014 at 4:45 AM, greelgorke <[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/nodejs/764501c2-dab3-47de-a7fa-e0d0596ff292%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMs%2BDq%2BmUd9YixsjjpVPSKb58QQ%2Bbr44w6Pxt-rLfwBKS3j5Yw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to