{"action":"created","issue":{"url":"https://api.github.com/repos/karma-runner/karma/issues/1078","labels_url":"https://api.github.com/repos/karma-runner/karma/issues/1078/labels{/name}","comments_url":"https://api.github.com/repos/karma-runner/karma/issues/1078/comments","events_url":"https://api.github.com/repos/karma-runner/karma/issues/1078/events","html_url":"https://github.com/karma-runner/karma/issues/1078","id":34506283,"number":1078,"title":"Export binary","user":{"login":"necolas","id":239676,"avatar_url":"https://avatars.githubusercontent.com/u/239676?v=3","gravatar_id":"","url":"https://api.github.com/users/necolas","html_url":"https://github.com/necolas","followers_url":"https://api.github.com/users/necolas/followers","following_url":"https://api.github.com/users/necolas/following{/other_user}","gists_url":"https://api.github.com/users/necolas/gists{/gist_id}","starred_url":"https://api.github.com/users/necolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/necolas/subscriptions","organizations_url":"https://api.github.com/users/necolas/orgs","repos_url":"https://api.github.com/users/necolas/repos","events_url":"https://api.github.com/users/necolas/events{/privacy}","received_events_url":"https://api.github.com/users/necolas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/karma-runner/karma/labels/discuss","name":"discuss","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2014-05-28T21:00:40Z","updated_at":"2015-04-13T00:21:28Z","closed_at":null,"body":"The binary export was removed in this commit: c7d46270aca83ecfe78f69fa923bc574c0b5bfdc\r\n\r\nBut I think this has broken npm-scripts aliasing. Normally you can run the local install of a package from npm-scripts in package.json (because npm looks up the binary in `./node_modules/.bin/`:\r\n\r\n```json\r\n{\r\n  \"scripts\": {\r\n    \"test\": \"karma start\"\r\n  }\r\n}\r\n```\r\n\r\nBut this doesn't work with Karma anymore."},"comment":{"url":"https://api.github.com/repos/karma-runner/karma/issues/comments/92156389","html_url":"https://github.com/karma-runner/karma/issues/1078#issuecomment-92156389","issue_url":"https://api.github.com/repos/karma-runner/karma/issues/1078","id":92156389,"user":{"login":"tkrotoff","id":643434,"avatar_url":"https://avatars.githubusercontent.com/u/643434?v=3","gravatar_id":"","url":"https://api.github.com/users/tkrotoff","html_url":"https://github.com/tkrotoff","followers_url":"https://api.github.com/users/tkrotoff/followers","following_url":"https://api.github.com/users/tkrotoff/following{/other_user}","gists_url":"https://api.github.com/users/tkrotoff/gists{/gist_id}","starred_url":"https://api.github.com/users/tkrotoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkrotoff/subscriptions","organizations_url":"https://api.github.com/users/tkrotoff/orgs","repos_url":"https://api.github.com/users/tkrotoff/repos","events_url":"https://api.github.com/users/tkrotoff/events{/privacy}","received_events_url":"https://api.github.com/users/tkrotoff/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T00:21:28Z","updated_at":"2015-04-13T00:21:28Z","body":"@maksimr \r\n> For example: you have karma version 0.12 in the project but globally you have karma version 0.11 and if you simple type karma in terminal then you run karma@0.11 instead karma@0.12.\r\n\r\nVery good example of why it is bad to install global npm packages.\r\nIMHO this issue is out of scope: this is the way UNIX works (security reasons).\r\n\r\nExample:\r\n```Shell\r\ncd ~\r\necho 'echo \"Hello, World!\"' > bin/ls2\r\nchmod a+x bin/ls2\r\nexport PATH=$PATH:bin\r\nls2\r\n# => Hello, World!\r\nmv bin/ls2 bin/ls\r\nls\r\n# => regular /bin/ls output, not ~/bin/ls output\r\n./bin/ls\r\n# => Hello, World!\r\n```\r\n\r\nPlease, just add back `karma` to `node_modules/.bin`, kill `karma-cli` and stop bypassing the way the OS works (and do not advice for global packages otherwise first year students will have to learn how [PATH](https://en.wikipedia.org/wiki/PATH_(variable)#Unix_and_Unix-like) work and the `which` command).\r\n\r\nIf you really believe this is a critical \"issue\", then propose the npm team a fix for all npm packages."}}