{"action":"created","issue":{"url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/360","labels_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/360/comments","events_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/360/events","html_url":"https://github.com/Alexpux/MSYS2-packages/issues/360","id":110187116,"number":360,"title":"npm doesn't work after updating winpty-git","user":{"login":"poxu","id":2285091,"avatar_url":"https://avatars.githubusercontent.com/u/2285091?v=3","gravatar_id":"","url":"https://api.github.com/users/poxu","html_url":"https://github.com/poxu","followers_url":"https://api.github.com/users/poxu/followers","following_url":"https://api.github.com/users/poxu/following{/other_user}","gists_url":"https://api.github.com/users/poxu/gists{/gist_id}","starred_url":"https://api.github.com/users/poxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poxu/subscriptions","organizations_url":"https://api.github.com/users/poxu/orgs","repos_url":"https://api.github.com/users/poxu/repos","events_url":"https://api.github.com/users/poxu/events{/privacy}","received_events_url":"https://api.github.com/users/poxu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-07T09:39:23Z","updated_at":"2015-10-07T12:46:48Z","closed_at":null,"body":"winpty exact version is winpty-git-1.1.1.184.db12b07\r\n\r\nSteps to reproduce\r\n------------------------\r\n1. Download msys2-base-x86_64-20150916.tar.xz\r\n2. Unpack it to d:/soft/msys2\r\n3. Run mingw64-shell.bat\r\n4. Restart\r\n5. pacman -S mingw64/mingw-w64-x86_64-nodejs\r\n6. npm (output should be ok)\r\n7. update-core\r\n8. Restart\r\n9. pacman -S msys/winpty-git\r\n10. npm\r\n\r\nExpected result\r\n-------------------\r\nnpm help output as usual\r\n\r\nActual result\r\n----------------\r\n````\r\nmodule.js:340\r\n    throw err;\r\n          ^\r\nError: Cannot find module 'D:\\mingw64\\lib\\node_modules\\npm\\bin\\npm-cli.js'\r\n    at Function.Module._resolveFilename (module.js:338:15)\r\n    at Function.Module._load (module.js:280:25)\r\n    at Function.Module.runMain (module.js:497:10)\r\n    at startup (node.js:119:16)\r\n    at node.js:935:3\r\n````\r\nAdditional info\r\n-----------------\r\nnpm looks for npm-cli.js in   \r\n````\r\n\"$basedir/node\" \"$basedir/../lib/node_modules/npm/bin/npm-cli.js\" \"$@\"\r\n````\r\nBasedir is /mingw64/bin, so the problem must be evaluating relative path\r\n\r\nDowngrading to winpty-git-1.1.1.148.47a69d0 helps\r\n"},"comment":{"url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/comments/146185954","html_url":"https://github.com/Alexpux/MSYS2-packages/issues/360#issuecomment-146185954","issue_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/360","id":146185954,"user":{"login":"elieux","id":1399406,"avatar_url":"https://avatars.githubusercontent.com/u/1399406?v=3","gravatar_id":"","url":"https://api.github.com/users/elieux","html_url":"https://github.com/elieux","followers_url":"https://api.github.com/users/elieux/followers","following_url":"https://api.github.com/users/elieux/following{/other_user}","gists_url":"https://api.github.com/users/elieux/gists{/gist_id}","starred_url":"https://api.github.com/users/elieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elieux/subscriptions","organizations_url":"https://api.github.com/users/elieux/orgs","repos_url":"https://api.github.com/users/elieux/repos","events_url":"https://api.github.com/users/elieux/events{/privacy}","received_events_url":"https://api.github.com/users/elieux/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T12:46:48Z","updated_at":"2015-10-07T12:46:48Z","body":"I can verify. The process chain looks like this:\r\n```\r\n/mingw64/bin/npm\r\n/usr/bin/sh (executes script)\r\n/mingw64/bin/node /mingw64/bin/../lib/node_modules/npm/bin/npm-cli.js\r\n/usr/bin/bash (executes script)\r\n/usr/bin/winpty /mingw64/bin/node.exe /mingw64/bin/../lib/node_modules/npm/bin/npm-cli.js\r\nC:\\msys64\\mingw64\\bin\\node.exe /mingw64/bin/../lib/node_modules/npm/bin/npm-cli.js\r\n```"}}