{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/3308","labels_url":"https://api.github.com/repos/nodejs/node/issues/3308/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/3308/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/3308/events","html_url":"https://github.com/nodejs/node/pull/3308","id":110757067,"number":3308,"title":"test: update test-npm to work with npm 3","user":{"login":"iarna","id":983798,"avatar_url":"https://avatars.githubusercontent.com/u/983798?v=3","gravatar_id":"","url":"https://api.github.com/users/iarna","html_url":"https://github.com/iarna","followers_url":"https://api.github.com/users/iarna/followers","following_url":"https://api.github.com/users/iarna/following{/other_user}","gists_url":"https://api.github.com/users/iarna/gists{/gist_id}","starred_url":"https://api.github.com/users/iarna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iarna/subscriptions","organizations_url":"https://api.github.com/users/iarna/orgs","repos_url":"https://api.github.com/users/iarna/repos","events_url":"https://api.github.com/users/iarna/events{/privacy}","received_events_url":"https://api.github.com/users/iarna/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/npm","name":"npm","color":"fad8c7"},{"url":"https://api.github.com/repos/nodejs/node/labels/tools","name":"tools","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-10T00:41:17Z","updated_at":"2015-10-10T01:17:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nodejs/node/pulls/3308","html_url":"https://github.com/nodejs/node/pull/3308","diff_url":"https://github.com/nodejs/node/pull/3308.diff","patch_url":"https://github.com/nodejs/node/pull/3308.patch"},"body":"This is a prerequisite for bringing in npm 3. This will still work with npm 2.\r\n\r\nThe reason this is a problem is that in npm 3, `test-legacy` and `test` both run `standard` against the source tree. When `test-legacy` runs it installs things into its temp directory, which with node's `make test-npm`, is located in the npm folder itself. So when `npm run-script test` executes, it runs standard, which sees the things installed by `test-legacy` and refuses to continue.  Using `test-all` solves this problem by combining `test-legacy` with `test` all in a single command.\r\n\r\nnpm itself never puts the temp folder in npm's source folder and so had never encountered this on its own.\r\n\r\n**r**: @Fishrock123\r\n**r**: @chrisdickinson"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/147020022","html_url":"https://github.com/nodejs/node/pull/3308#issuecomment-147020022","issue_url":"https://api.github.com/repos/nodejs/node/issues/3308","id":147020022,"user":{"login":"iarna","id":983798,"avatar_url":"https://avatars.githubusercontent.com/u/983798?v=3","gravatar_id":"","url":"https://api.github.com/users/iarna","html_url":"https://github.com/iarna","followers_url":"https://api.github.com/users/iarna/followers","following_url":"https://api.github.com/users/iarna/following{/other_user}","gists_url":"https://api.github.com/users/iarna/gists{/gist_id}","starred_url":"https://api.github.com/users/iarna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iarna/subscriptions","organizations_url":"https://api.github.com/users/iarna/orgs","repos_url":"https://api.github.com/users/iarna/repos","events_url":"https://api.github.com/users/iarna/events{/privacy}","received_events_url":"https://api.github.com/users/iarna/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T01:17:01Z","updated_at":"2015-10-10T01:17:01Z","body":"Ok, I've updated the PR, making this the npm@3 equivalent of the old npm@2 incantation."}}