-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
npm broken under windows (v2.2.1 and v2.2.2 nightly) #1940
Copy link
Copy link
Closed
Labels
npmIssues and PRs related to the npm client dependency or the npm registry.Issues and PRs related to the npm client dependency or the npm registry.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
Is it just me or is iojs broken on Windows ?
When I install a global module, it gets installed in HOME/AppData/Roaming/npm/node_modules but this path is not searched in Module.require (see below).
Shouldn't global modules be installed in Program Files/lib/node ?
$ which npm
/c/Program Files/iojs/npm
$ which node
/c/Program Files/iojs/node
$ npm install -g is-property
[email protected] C:\Users\gaspard\AppData\Roaming\npm\node_modules\is-property
$ node
> require('module')
{ [Function: Module]
_contextLoad: false,
_cache: {},
_pathCache: {},
_extensions:
{ '.js': [Function],
'.json': [Function],
'.node': [Function: dlopen] },
globalPaths:
[ 'C:\\Users\\gaspard\\.node_modules',
'C:\\Users\\gaspard\\.node_libraries',
'c:\\Program Files\\lib\\node' ],Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
npmIssues and PRs related to the npm client dependency or the npm registry.Issues and PRs related to the npm client dependency or the npm registry.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.