{"action":"opened","issue":{"url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/1039","repository_url":"https://api.github.com/repos/Alexpux/MINGW-packages","labels_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/1039/labels{/name}","comments_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/1039/comments","events_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/1039/events","html_url":"https://github.com/Alexpux/MINGW-packages/issues/1039","id":130981228,"number":1039,"title":"NPM broken in mingw64_shell (module search)","user":{"login":"radioflash","id":2119776,"avatar_url":"https://avatars.githubusercontent.com/u/2119776?v=3","gravatar_id":"","url":"https://api.github.com/users/radioflash","html_url":"https://github.com/radioflash","followers_url":"https://api.github.com/users/radioflash/followers","following_url":"https://api.github.com/users/radioflash/following{/other_user}","gists_url":"https://api.github.com/users/radioflash/gists{/gist_id}","starred_url":"https://api.github.com/users/radioflash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radioflash/subscriptions","organizations_url":"https://api.github.com/users/radioflash/orgs","repos_url":"https://api.github.com/users/radioflash/repos","events_url":"https://api.github.com/users/radioflash/events{/privacy}","received_events_url":"https://api.github.com/users/radioflash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-03T10:20:15Z","updated_at":"2016-02-03T10:20:15Z","closed_at":null,"body":"When launching NPM, everything works from the default windows CMD line (with the mingw64/bin directory in PATH).\r\n\r\nBut when started from within a  mingw64_shell, npm tries to search for modules in a directory that does not exist.\r\n\r\nActual module path: \r\n```\r\n$ echo $NODE_PATH\r\nc:\\msys64\\mingw64\\lib\\node_modules\r\n```\r\n\r\nPath where npm searches for modules (npm fails to launch if modules are not copied into this directory):\r\n```\r\n$ npm --help\r\nnpm@1.4.28 C:\\mingw64\\lib\\node_modules\\npm\r\n```\r\n\r\nnpm prefix is also correct:\r\n```\r\n$ npm config get prefix\r\nc:\\msys64\\mingw64\r\n```\r\n\r\nThere should be no non-default npm configuration on the whole system, and NODE_PATH was set explicitly (to no effect). Any ideas on what the problem even IS, or how to fix it?"}}