{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/6434","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/6434/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/6434/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/6434/events","html_url":"https://github.com/nodejs/node/issues/6434","id":151513963,"number":6434,"title":"Module.globalPaths under Windows","user":{"login":"zxqfox","id":677518,"avatar_url":"https://avatars.githubusercontent.com/u/677518?v=3","gravatar_id":"","url":"https://api.github.com/users/zxqfox","html_url":"https://github.com/zxqfox","followers_url":"https://api.github.com/users/zxqfox/followers","following_url":"https://api.github.com/users/zxqfox/following{/other_user}","gists_url":"https://api.github.com/users/zxqfox/gists{/gist_id}","starred_url":"https://api.github.com/users/zxqfox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zxqfox/subscriptions","organizations_url":"https://api.github.com/users/zxqfox/orgs","repos_url":"https://api.github.com/users/zxqfox/repos","events_url":"https://api.github.com/users/zxqfox/events{/privacy}","received_events_url":"https://api.github.com/users/zxqfox/received_events","type":"User","site_admin":false},"labels":[{"id":207445406,"url":"https://api.github.com/repos/nodejs/node/labels/feature%20request","name":"feature request","color":"0D7BDE","default":false},{"id":155435814,"url":"https://api.github.com/repos/nodejs/node/labels/module","name":"module","color":"fbca04","default":false},{"id":166236401,"url":"https://api.github.com/repos/nodejs/node/labels/windows","name":"windows","color":"9944dd","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-04-27T23:17:09Z","updated_at":"2016-12-01T00:15:27Z","closed_at":null,"body":"- **Version**: 4.3—6.0\n- **Platform**: Windows 32, 64\n\nLooks like code at https://github.com/nodejs/node/blob/master/lib/module.js#L590:\n\n``` js\nvar paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')];\n```\n\nis Unix specific and since `nodejs` is installed as `c:\\program files\\nodejs\\node.exe` the base path resolved to `'C:\\\\Program Files\\\\lib\\\\node'`, and it's pointless.\n\nGuess this should be fixed to `path.resolve(process.env.AppData, 'npm', 'node_modules')` for windows, or something similar since right there node_modules are placed by default in win7+.\n"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/264039151","html_url":"https://github.com/nodejs/node/issues/6434#issuecomment-264039151","issue_url":"https://api.github.com/repos/nodejs/node/issues/6434","id":264039151,"user":{"login":"nicksoph","id":5250784,"avatar_url":"https://avatars.githubusercontent.com/u/5250784?v=3","gravatar_id":"","url":"https://api.github.com/users/nicksoph","html_url":"https://github.com/nicksoph","followers_url":"https://api.github.com/users/nicksoph/followers","following_url":"https://api.github.com/users/nicksoph/following{/other_user}","gists_url":"https://api.github.com/users/nicksoph/gists{/gist_id}","starred_url":"https://api.github.com/users/nicksoph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicksoph/subscriptions","organizations_url":"https://api.github.com/users/nicksoph/orgs","repos_url":"https://api.github.com/users/nicksoph/repos","events_url":"https://api.github.com/users/nicksoph/events{/privacy}","received_events_url":"https://api.github.com/users/nicksoph/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T00:15:27Z","updated_at":"2016-12-01T00:15:27Z","body":"Ran into this whilst trying to setup working files which are held locally on several machines and synced via the cloud which makes global installs problematic. It seems sensible that a configuration file be held at a fixed location in relation to the install but that initial configuration file should be capable of pointing to a second configuration file where all other file paths are referenced so as to allow the configuration of different machines to point to the same data. This would allow for a separation of  what is synced (and is the same) and what is not (which may be different)."}}
{"actor":{"display_login":"nicksoph"}}