IGRACH
IGRACH

Reputation: 3635

NPM cant find module, win 7/64 bit

I just have installed node for windows 64 bit with the msi installer from node.js site, on windows 7 64 bit. It sad that it install node path and npm(node package manager). And when I type node in CMD it goes to interactive console and I can run .js scripts with it(it's working). But when I type npm I get this error. I did not change any paths and it's a fresh install.

Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3

Upvotes: 0

Views: 441

Answers (3)

John Rumpel
John Rumpel

Reputation: 4615

You may change the PATH variable to C:\Program Files\nodejs' instead of C:\Program Files\nodejs\node_modules\npm\bin.

Upvotes: 0

Ouwen Huang
Ouwen Huang

Reputation: 1097

I'd suggest downloading git bash for windows. That should solve most cmd problems.

Upvotes: 0

IGRACH
IGRACH

Reputation: 3635

Well APPARENTLY, problem is in 64 bit version of windows installer, the 32 bit is working fine!

Upvotes: 2

Related Questions