meteor / postgres-packages

Early preview of PostgreSQL support for Meteor (deprecated, here for historical reasons)
http://meteor-postgres.readthedocs.org/
158 stars 25 forks source link

Migration Error #1

Closed rclai closed 8 years ago

rclai commented 8 years ago
root@profab-dev:~/pg-test/examples/react-todos/.knex# knex migrate:latest
Using environment: development

TypeError: object is not a function
    at initKnex (/root/.nvm/v0.10.36/lib/node_modules/knex/lib/bin/cli.js:68:10)
    at Command.<anonymous> (/root/.nvm/v0.10.36/lib/node_modules/knex/lib/bin/cli.js:103:15)
    at Command.listener (/root/.nvm/v0.10.36/lib/node_modules/knex/node_modules/commander/index.js:301:8)
    at Command.emit (events.js:98:17)
    at Command.parseArgs (/root/.nvm/v0.10.36/lib/node_modules/knex/node_modules/commander/index.js:610:12)
    at Command.parse (/root/.nvm/v0.10.36/lib/node_modules/knex/node_modules/commander/index.js:458:21)
    at Liftoff.invoke (/root/.nvm/v0.10.36/lib/node_modules/knex/lib/bin/cli.js:142:13)
    at Liftoff.<anonymous> (/root/.nvm/v0.10.36/lib/node_modules/knex/node_modules/liftoff/index.js:181:16)
    at module.exports (/root/.nvm/v0.10.36/lib/node_modules/knex/node_modules/liftoff/node_modules/flagged-respawn/index.js:17:3)
    at Liftoff.<anonymous> (/root/.nvm/v0.10.36/lib/node_modules/knex/node_modules/liftoff/index.js:174:9)
    at /root/.nvm/v0.10.36/lib/node_modules/knex/node_modules/liftoff/index.js:148:9
    at /root/.nvm/v0.10.36/lib/node_modules/knex/node_modules/v8flags/index.js:99:14
    at /root/.nvm/v0.10.36/lib/node_modules/knex/node_modules/v8flags/index.js:38:7
    at process._tickCallback (node.js:442:13)
    at Function.Module.runMain (module.js:499:11)
    at startup (node.js:119:16)
Slava commented 8 years ago

@stubailo do you have any idea what this report means?

Going to close this as this report doesn't hold to my standards of clarity and proper explanation.

rclai commented 8 years ago

I followed the instructions as written on the .knex README:

npm install -g knex
npm install
knex migrate:latest

The first line you see on the OP paste is the last command above.

Does it have anything to do with the node.js version? I'm on 0.10.36.

stubailo commented 8 years ago

Works for me in node 0.10.29, sounds like it could be a knex bug.

rclai commented 8 years ago

I deleted the .meteor/local and releases file, ran those three commands on .knex again and it works now.

stubailo commented 8 years ago

Cool, hehe. Not sure what happened there.