{"action":"created","issue":{"url":"https://api.github.com/repos/este/este/issues/652","labels_url":"https://api.github.com/repos/este/este/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/este/este/issues/652/comments","events_url":"https://api.github.com/repos/este/este/issues/652/events","html_url":"https://github.com/este/este/issues/652","id":124111529,"number":652,"title":"running \"gulp\" not working after installing babel 6","user":{"login":"rkoberg","id":83722,"avatar_url":"https://avatars.githubusercontent.com/u/83722?v=3","gravatar_id":"","url":"https://api.github.com/users/rkoberg","html_url":"https://github.com/rkoberg","followers_url":"https://api.github.com/users/rkoberg/followers","following_url":"https://api.github.com/users/rkoberg/following{/other_user}","gists_url":"https://api.github.com/users/rkoberg/gists{/gist_id}","starred_url":"https://api.github.com/users/rkoberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkoberg/subscriptions","organizations_url":"https://api.github.com/users/rkoberg/orgs","repos_url":"https://api.github.com/users/rkoberg/repos","events_url":"https://api.github.com/users/rkoberg/events{/privacy}","received_events_url":"https://api.github.com/users/rkoberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-28T19:30:58Z","updated_at":"2015-12-28T20:56:23Z","closed_at":null,"body":"I pulled the latest este, ran ```npm install``` and then ```gulp```. Running the gulp default task results in:\r\n```\r\n$ gulp\r\n[11:25:20] Requiring external module babel/register\r\n/Users/rkoberg/Sites/este/node_modules/babel/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126\r\n      if (!option) this.log.error(\"Unknown option: \" + alias + \".\" + key, ReferenceError);\r\n                           ^\r\n\r\nTypeError: Cannot read property 'error' of undefined\r\n    at OptionManager.mergeOptions (/Users/rkoberg/Sites/este/node_modules/babel/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126:28)\r\n    at OptionManager.addConfig (/Users/rkoberg/Sites/este/node_modules/babel/node_modules/babel-core/lib/transformation/file/options/option-manager.js:107:10)\r\n    at OptionManager.findConfigs (/Users/rkoberg/Sites/este/node_modules/babel/node_modules/babel-core/lib/transformation/file/options/option-manager.js:168:35)\r\n    at OptionManager.init (/Users/rkoberg/Sites/este/node_modules/babel/node_modules/babel-core/lib/transformation/file/options/option-manager.js:229:12)\r\n    at compile (/Users/rkoberg/Sites/este/node_modules/babel/node_modules/babel-core/lib/api/register/node.js:117:22)\r\n    at normalLoader (/Users/rkoberg/Sites/este/node_modules/babel/node_modules/babel-core/lib/api/register/node.js:199:14)\r\n    at Object.require.extensions.(anonymous function) [as .js] (/Users/rkoberg/Sites/este/node_modules/babel/node_modules/babel-core/lib/api/register/node.js:216:7)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:311:12)\r\n    at Module.require (module.js:366:17)\r\n\r\n```\r\ngoogling for \"babel-core/lib/transformation/file/options/option-manager.js:126 TypeError: Cannot read property 'error' of undefined\" brings up a page of similar complaints about switching to babel 6. The most common problem seems to be that a cached version of babel is being used. The only thing I have global is npm. I cleared my user's npm cache and ran the npm install again, but still get the error above. Any ideas how to fix?"},"comment":{"url":"https://api.github.com/repos/este/este/issues/comments/167654434","html_url":"https://github.com/este/este/issues/652#issuecomment-167654434","issue_url":"https://api.github.com/repos/este/este/issues/652","id":167654434,"user":{"login":"rkoberg","id":83722,"avatar_url":"https://avatars.githubusercontent.com/u/83722?v=3","gravatar_id":"","url":"https://api.github.com/users/rkoberg","html_url":"https://github.com/rkoberg","followers_url":"https://api.github.com/users/rkoberg/followers","following_url":"https://api.github.com/users/rkoberg/following{/other_user}","gists_url":"https://api.github.com/users/rkoberg/gists{/gist_id}","starred_url":"https://api.github.com/users/rkoberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkoberg/subscriptions","organizations_url":"https://api.github.com/users/rkoberg/orgs","repos_url":"https://api.github.com/users/rkoberg/repos","events_url":"https://api.github.com/users/rkoberg/events{/privacy}","received_events_url":"https://api.github.com/users/rkoberg/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T20:56:23Z","updated_at":"2015-12-28T20:56:23Z","body":"The version of babel that is getting installed on a clean ```npm install``` is \"version\": \"5.8.34\". I am not sure what is installing babel and in particular the old version. If I add the dependency (\"babel\": \"^6.3.26\",), deleted my node_modules, installed again (which goes through the build fine like before), then run gulp and now get:\r\n```\r\n$ gulp\r\n[12:42:20] Failed to load external module babel/register\r\n/Users/rkoberg/Sites/este/gulpfile.babel.js:2\r\nimport bg from 'gulp-bg';\r\n^^^^^^\r\n\r\nSyntaxError: Unexpected token import\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:404:25)\r\n    at Object.Module._extensions..js (module.js:432:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:311:12)\r\n    at Module.require (module.js:366:17)\r\n    at require (module.js:385:17)\r\n    at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp/bin/gulp.js:116:3)\r\n    at Liftoff.<anonymous> (/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:192:16)\r\n    at module.exports (/usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/flagged-respawn/index.js:17:3)\r\n```\r\nIt should be looking for register in babel-core, not babel, right? \r\nI also added ```\"presets\": [\"es2015-node5\", \"react\", \"stage-1\"],``` to the root .babelrc, but still no luck."}}