isaacs/npm — Issue #1584: Windows: install into C:\bin, error with install -g
Author: hitsthings
Created: 2011-10-22 07:17:35+00:00
State: open

I installed node into C:\bin initially, and when I installed npm it created a C:\lib folder to go with it - seemed successful.

Then I attempted to

npm install -g node-inspector

I got an error about not being able to open

"C:\bin\C:\lib\node-modules\...." (notice the lib folder path being appending to the bin folder path)

It came from within the module.js file. Unfortunately I didn't save the full console log.

Switched my node path to C:\Program Files\node\bin, reinstalled npm, and everything worked fine.

Windows 7 64-bit

Sorry the bug report is lacking details.