{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2041","labels_url":"https://api.github.com/repos/babel/babel/issues/2041/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2041/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2041/events","html_url":"https://github.com/babel/babel/issues/2041","id":96245632,"number":2041,"title":"babel CLI command inside NPM script fails silently","user":{"login":"erykpiast","id":1434406,"avatar_url":"https://avatars.githubusercontent.com/u/1434406?v=3","gravatar_id":"","url":"https://api.github.com/users/erykpiast","html_url":"https://github.com/erykpiast","followers_url":"https://api.github.com/users/erykpiast/followers","following_url":"https://api.github.com/users/erykpiast/following{/other_user}","gists_url":"https://api.github.com/users/erykpiast/gists{/gist_id}","starred_url":"https://api.github.com/users/erykpiast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erykpiast/subscriptions","organizations_url":"https://api.github.com/users/erykpiast/orgs","repos_url":"https://api.github.com/users/erykpiast/repos","events_url":"https://api.github.com/users/erykpiast/events{/privacy}","received_events_url":"https://api.github.com/users/erykpiast/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-21T07:06:17Z","updated_at":"2015-07-21T17:52:26Z","closed_at":"2015-07-21T17:20:10Z","body":"I'm not sure if this issue should be reported here or in NPM channel, I'm doing it here after all. \r\n\r\nI encountered weird issue with Babel and NPM. `babel` command put in NPM script fails silently, but when running directly it works without errors. Example:\r\n\r\n    babel -d dist/ src/\r\n\r\noutputs\r\n\r\n    src/file1.js -> dist/file1.js\r\n    src/file2.js -> dist/file2.js\r\n\r\nThe same command inside NPM script\r\n\r\n    \"scripts\": {\r\n        \"compile\": \"babel -d dist/ src/\"\r\n     }\r\n\r\nrunned by `npm run compile` outputs nothing except package name and command itself. \r\n\r\nWhat is more interesting here, on the same machine I can build different project through NPM, with exactly the same version of Babel. I suspected my code is broken,  but outside NPM script compilation goes smoothly. Another commands in this somehow broken project work perfectly. If you want to check:\r\n\r\n * here NPM & Babel don't want to work together: https://github.com/erykpiast/cyclejs-stream\r\n * here everything is working: https://github.com/cyclejs/cycle-core\r\n\r\nI suppose it's because my project has less GitHub stars... No idea, to be honest, it was just working about month ago, I've not updated the machine since this time, just updated dependencies and `npm install` when I went back to the project.\r\n\r\nAny help appreciated!\r\n\r\nMy environments description:\r\n * [linux](https://gist.github.com/erykpiast/d51d7658410f499f33cc#file-linux)\r\n * [windows](https://gist.github.com/erykpiast/d51d7658410f499f33cc#file-windows)"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/123414754","html_url":"https://github.com/babel/babel/issues/2041#issuecomment-123414754","issue_url":"https://api.github.com/repos/babel/babel/issues/2041","id":123414754,"user":{"login":"jmm","id":129203,"avatar_url":"https://avatars.githubusercontent.com/u/129203?v=3","gravatar_id":"","url":"https://api.github.com/users/jmm","html_url":"https://github.com/jmm","followers_url":"https://api.github.com/users/jmm/followers","following_url":"https://api.github.com/users/jmm/following{/other_user}","gists_url":"https://api.github.com/users/jmm/gists{/gist_id}","starred_url":"https://api.github.com/users/jmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmm/subscriptions","organizations_url":"https://api.github.com/users/jmm/orgs","repos_url":"https://api.github.com/users/jmm/repos","events_url":"https://api.github.com/users/jmm/events{/privacy}","received_events_url":"https://api.github.com/users/jmm/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T17:52:25Z","updated_at":"2015-07-21T17:52:25Z","body":"@erykpiast You're welcome. Tough to say what the cause was unfortunately, but I'm glad you got it sorted out. If you haven't yet you might want to check out the slack community so you're familiar with it when you need support in the future."}}