{"action":"closed","issue":{"url":"https://api.github.com/repos/AtomBuild/atom-build-npm-apm/issues/1","labels_url":"https://api.github.com/repos/AtomBuild/atom-build-npm-apm/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/AtomBuild/atom-build-npm-apm/issues/1/comments","events_url":"https://api.github.com/repos/AtomBuild/atom-build-npm-apm/issues/1/events","html_url":"https://github.com/AtomBuild/atom-build-npm-apm/issues/1","id":109655208,"number":1,"title":"Problems running npm scripts on Windows platform","user":{"login":"corintho","id":298089,"avatar_url":"https://avatars.githubusercontent.com/u/298089?v=3","gravatar_id":"","url":"https://api.github.com/users/corintho","html_url":"https://github.com/corintho","followers_url":"https://api.github.com/users/corintho/followers","following_url":"https://api.github.com/users/corintho/following{/other_user}","gists_url":"https://api.github.com/users/corintho/gists{/gist_id}","starred_url":"https://api.github.com/users/corintho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corintho/subscriptions","organizations_url":"https://api.github.com/users/corintho/orgs","repos_url":"https://api.github.com/users/corintho/repos","events_url":"https://api.github.com/users/corintho/events{/privacy}","received_events_url":"https://api.github.com/users/corintho/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-04T01:08:22Z","updated_at":"2015-12-15T19:39:00Z","closed_at":"2015-12-15T19:39:00Z","body":"When I run a npm script on windows, it only works if I run the \"npm: default\" task. If I run any other npm script, it fails to find npm.\r\n\r\nLooking at your script source, on line 35, you have:\r\n```\r\nexec: (pkg.engines.node ? 'npm' : 'apm') + executableExtension,\r\n```\r\nWhich guarantees the proper extension for the npm script on Windows.\r\n\r\nOn line 43:\r\n```\r\nexec: 'npm',\r\n```\r\nWhich I assume is the culprit to make the other scripts fail."}}