{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2922","labels_url":"https://api.github.com/repos/babel/babel/issues/2922/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2922/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2922/events","html_url":"https://github.com/babel/babel/issues/2922","id":115763782,"number":2922,"title":"Tests fail when building with node v5.0.0 / npm v3.3.6","user":{"login":"chalbert","id":760299,"avatar_url":"https://avatars.githubusercontent.com/u/760299?v=3","gravatar_id":"","url":"https://api.github.com/users/chalbert","html_url":"https://github.com/chalbert","followers_url":"https://api.github.com/users/chalbert/followers","following_url":"https://api.github.com/users/chalbert/following{/other_user}","gists_url":"https://api.github.com/users/chalbert/gists{/gist_id}","starred_url":"https://api.github.com/users/chalbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalbert/subscriptions","organizations_url":"https://api.github.com/users/chalbert/orgs","repos_url":"https://api.github.com/users/chalbert/repos","events_url":"https://api.github.com/users/chalbert/events{/privacy}","received_events_url":"https://api.github.com/users/chalbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-08T21:49:27Z","updated_at":"2015-11-08T23:45:08Z","closed_at":null,"body":"I've encountered the following problem when running `make test` after building from scratch using `node v5.0.0` / `npm v3.3.6`.\r\n\r\nRunning\r\n```\r\n$ nvm use v5.0.0\r\n$ git clone git@github.com:babel/babel.git\r\n$ cd babel\r\n$ make bootstrap\r\n$ make build\r\n$ make test\r\n```\r\n\r\nI get\r\n```\r\nbabel/node_modules/eslint/lib/rules/no-undef.js:59\r\n    return parent.type === \"UnaryExpression\" && parent.operator === \"typeof\";\r\n                 ^\r\n\r\nTypeError: Cannot read property 'type' of undefined\r\n    at hasTypeOfOperator (babel/node_modules/eslint/lib/rules/no-undef.js:59:18)\r\n    at babel/node_modules/eslint/lib/rules/no-undef.js:84:21\r\n    at Array.forEach (native)\r\n    at EventEmitter.Program:exit (babel/node_modules/eslint/lib/rules/no-undef.js:80:33)\r\n    at emitOne (events.js:82:20)\r\n    at EventEmitter.emit (events.js:169:7)\r\n    at NodeEventGenerator.leaveNode (babel/node_modules/eslint/lib/util/node-event-generator.js:51:22)\r\n    at CommentEventGenerator.leaveNode (babel/node_modules/eslint/lib/util/comment-event-generator.js:111:23)\r\n    at Controller.controller.traverse.leave (babel/node_modules/eslint/lib/eslint.js:774:36)\r\n    at Controller.__execute (babel/node_modules/eslint/node_modules/estraverse/estraverse.js:397:31)\r\n```\r\n\r\nInterestingly, if the project has been built first with an older version of node / npm, then it works. I suspect it is due to how the bootstrap is executed using npm 3.\r\n\r\nThis works\r\n```\r\n$ nvm use v4.1.1\r\n$ git clone git@github.com:babel/babel.git\r\n$ cd babel\r\n$ make bootstrap\r\n$ make build\r\n$ make test\r\n```\r\n\r\nAnd again in the same directory, this works too\r\n```\r\n$ nvm use v5.0.0\r\n$ make bootstrap\r\n$ make build\r\n$ make test\r\n```"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/154887220","html_url":"https://github.com/babel/babel/issues/2922#issuecomment-154887220","issue_url":"https://api.github.com/repos/babel/babel/issues/2922","id":154887220,"user":{"login":"chalbert","id":760299,"avatar_url":"https://avatars.githubusercontent.com/u/760299?v=3","gravatar_id":"","url":"https://api.github.com/users/chalbert","html_url":"https://github.com/chalbert","followers_url":"https://api.github.com/users/chalbert/followers","following_url":"https://api.github.com/users/chalbert/following{/other_user}","gists_url":"https://api.github.com/users/chalbert/gists{/gist_id}","starred_url":"https://api.github.com/users/chalbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalbert/subscriptions","organizations_url":"https://api.github.com/users/chalbert/orgs","repos_url":"https://api.github.com/users/chalbert/repos","events_url":"https://api.github.com/users/chalbert/events{/privacy}","received_events_url":"https://api.github.com/users/chalbert/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T23:45:08Z","updated_at":"2015-11-08T23:45:08Z","body":"Thanks, `make test-only` is a reasonable solution for now. Isn't it weird that eslint fails for a clean clone though?\r\n\r\nI'd be interesting to know if anybody else can reproduce. "}}