Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Prefix setting on windows #1582

Closed
isaacs opened this Issue · 0 comments

1 participant

@isaacs
Owner

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 issue from a commit
@isaacs isaacs Close #1582 Make prefixes better on windows
1. Make prefixes and paths more windows-like on windows.
2. Abstract out all path-munging behavior to lib/npm.js where it belongs.
2e45745
@isaacs isaacs closed this in 2e45745
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.