{"action":"created","issue":{"url":"https://api.github.com/repos/tgriesser/knex/issues/1134","repository_url":"https://api.github.com/repos/tgriesser/knex","labels_url":"https://api.github.com/repos/tgriesser/knex/issues/1134/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/knex/issues/1134/comments","events_url":"https://api.github.com/repos/tgriesser/knex/issues/1134/events","html_url":"https://github.com/tgriesser/knex/issues/1134","id":126087282,"number":1134,"title":"Cannot read property 'split' of null error","user":{"login":"demisx","id":4452412,"avatar_url":"https://avatars.githubusercontent.com/u/4452412?v=3","gravatar_id":"","url":"https://api.github.com/users/demisx","html_url":"https://github.com/demisx","followers_url":"https://api.github.com/users/demisx/followers","following_url":"https://api.github.com/users/demisx/following{/other_user}","gists_url":"https://api.github.com/users/demisx/gists{/gist_id}","starred_url":"https://api.github.com/users/demisx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demisx/subscriptions","organizations_url":"https://api.github.com/users/demisx/orgs","repos_url":"https://api.github.com/users/demisx/repos","events_url":"https://api.github.com/users/demisx/events{/privacy}","received_events_url":"https://api.github.com/users/demisx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-12T03:09:11Z","updated_at":"2016-05-05T12:59:21Z","closed_at":null,"body":"```sh\r\n$ knex -V\r\nKnex CLI version:  0.9.0\r\nLocal Knex version:  0.9.0\r\n```\r\n\r\nRunning `knex migrate:make test` produces this error:\r\n\r\n```sh\r\n$ knex migrate:make test\r\n/usr/local/lib/node_modules/knex/lib/bin/cli.js:104\r\n      var ext = (argv.x || env.configPath.split('.').pop()).toLowerCase();\r\n                                         ^\r\nTypeError: Cannot read property 'split' of null\r\n    at Command.<anonymous> (/usr/local/lib/node_modules/knex/lib/bin/cli.js:104:42)\r\n    at Command.listener (/usr/local/lib/node_modules/knex/node_modules/commander/index.js:301:8)\r\n    at emitTwo (events.js:87:13)\r\n    at Command.emit (events.js:172:7)\r\n    at Command.parseArgs (/usr/local/lib/node_modules/knex/node_modules/commander/index.js:610:12)\r\n    at Command.parse (/usr/local/lib/node_modules/knex/node_modules/commander/index.js:458:21)\r\n    at Liftoff.invoke (/usr/local/lib/node_modules/knex/lib/bin/cli.js:166:13)\r\n    at Liftoff.launch (/usr/local/lib/node_modules/knex/node_modules/liftoff/index.js:163:8)\r\n    at Object.<anonymous> (/usr/local/lib/node_modules/knex/lib/bin/cli.js:186:5)\r\n    at Module._compile (module.js:398:26)\r\n    at Object.Module._extensions..js (module.js:405:10)\r\n    at Module.load (module.js:344:32)\r\n    at Function.Module._load (module.js:301:12)\r\n    at Function.Module.runMain (module.js:430:10)\r\n    at startup (node.js:141:18)\r\n    at node.js:1003:3\r\n``` "},"comment":{"url":"https://api.github.com/repos/tgriesser/knex/issues/comments/217145766","html_url":"https://github.com/tgriesser/knex/issues/1134#issuecomment-217145766","issue_url":"https://api.github.com/repos/tgriesser/knex/issues/1134","id":217145766,"user":{"login":"NathanKleekamp","id":1002258,"avatar_url":"https://avatars.githubusercontent.com/u/1002258?v=3","gravatar_id":"","url":"https://api.github.com/users/NathanKleekamp","html_url":"https://github.com/NathanKleekamp","followers_url":"https://api.github.com/users/NathanKleekamp/followers","following_url":"https://api.github.com/users/NathanKleekamp/following{/other_user}","gists_url":"https://api.github.com/users/NathanKleekamp/gists{/gist_id}","starred_url":"https://api.github.com/users/NathanKleekamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NathanKleekamp/subscriptions","organizations_url":"https://api.github.com/users/NathanKleekamp/orgs","repos_url":"https://api.github.com/users/NathanKleekamp/repos","events_url":"https://api.github.com/users/NathanKleekamp/events{/privacy}","received_events_url":"https://api.github.com/users/NathanKleekamp/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T12:59:21Z","updated_at":"2016-05-05T12:59:21Z","body":"Hi @s2t2 , what does the directory path look like in your knexfile? Is it relative to the knexfile you specified with the cli flag? Or is it from the project root where you're running the `knex migrate` command?\r\n\r\nI've tried specifying a different knexfile path by running `npm run knex migrate:make test_migration --knexfile path/to/knexfile.js`, but I'm still getting the \"Cannot read property 'split' of null\" error.\r\n\r\nIf I leave the knexfile.js in the default location, everything works as expected, fwiw.\r\n\r\nThanks a ton! -Nathan"}}