Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Cygwin Error on npm install #2384

Closed
msaksena opened this issue Apr 19, 2012 · 3 comments
Closed

Cygwin Error on npm install #2384

msaksena opened this issue Apr 19, 2012 · 3 comments

Comments

@msaksena
Copy link

I download the latest node today and installed on my Windows laptop with a fresh cygwin install. When I tried to install express using npm, I get the following -- the path at which npm is looking is mixed between cygwin paths and windows paths, resulting in failure.

$ npm install -g express

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'C:\cygdrive\c\Program Files\nodejs\node_modules\npm\bin\npm-cli.js'
at Function._resolveFilename (module.js:332:11)
at Function._load (module.js:279:25)
at Array.0 (module.js:479:10)
at EventEmitter._tickCallback (node.js:192:40)

Any hints on how to fix this?

Thanks
Manas

@spasche
Copy link

spasche commented Apr 19, 2012

Try with npm.cmd instead of npm.

Alternatively, it should work with the cmd interpreter.

@msaksena
Copy link
Author

Thanks -- that worked.

@isaacs
Copy link
Contributor

isaacs commented Apr 19, 2012

You could also just use npm and node in Windows, rather than in Cygwin. It works fine in the Git Bash shell, as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants