{"action":"opened","issue":{"url":"https://api.github.com/repos/bethesque/pact-mock-service-npm/issues/12","labels_url":"https://api.github.com/repos/bethesque/pact-mock-service-npm/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/bethesque/pact-mock-service-npm/issues/12/comments","events_url":"https://api.github.com/repos/bethesque/pact-mock-service-npm/issues/12/events","html_url":"https://github.com/bethesque/pact-mock-service-npm/issues/12","id":105292870,"number":12,"title":"Post install script fail when using private npm proxy which require authenication","user":{"login":"airmanx86","id":8381123,"avatar_url":"https://avatars.githubusercontent.com/u/8381123?v=3","gravatar_id":"","url":"https://api.github.com/users/airmanx86","html_url":"https://github.com/airmanx86","followers_url":"https://api.github.com/users/airmanx86/followers","following_url":"https://api.github.com/users/airmanx86/following{/other_user}","gists_url":"https://api.github.com/users/airmanx86/gists{/gist_id}","starred_url":"https://api.github.com/users/airmanx86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airmanx86/subscriptions","organizations_url":"https://api.github.com/users/airmanx86/orgs","repos_url":"https://api.github.com/users/airmanx86/repos","events_url":"https://api.github.com/users/airmanx86/events{/privacy}","received_events_url":"https://api.github.com/users/airmanx86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-08T03:16:39Z","updated_at":"2015-09-08T03:16:39Z","closed_at":null,"body":"Somehow the .npmrc setting is not honored in the post install script which install the platform specific pact-mock-service package. It automatically fail back to the npm global configuration which does not have the authentication details and therefore failing to download the package from private npm registry.\r\n\r\nThe workaround is to run `npm install` with `--userconfig .npmrc` which force the post install script to use the provided .npmrc file.\r\n\r\nI am not sure if it's intended behaviour of npm API or not, but if it can be resolved at the install / post install script level (or even in the library / code itself), it would be wonderful."}}