Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Prefix setting on windows #1582

Closed
isaacs opened this Issue Oct 21, 2011 · 0 comments

Comments

Projects
None yet
1 participant
Owner

isaacs commented Oct 21, 2011

On windows, the node executable might not live somewhere in the PATH, and even still, it's very unusual to have the whole <prefix>/{bin,lib,share} type of folder setup.

Instead of going up two directories and then appending lib/node_modules, just put stuff in folders based on where the node.exe lives:

C:\node\node.exe
C:\node\npm.cmd
C:\node\node_modules\npm\<contents>
C:\node\vows.cmd
C:\node\node_modules\vows\<contents>

The global npm.dir in this case would be C:\node\node_modules, and the global npm.prefix would be C:\node.

@isaacs isaacs closed this in 2e45745 Oct 22, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment