You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I just update the v10.0.0 and got an error when checking version.
To Reproduce
Steps to reproduce the behavior:
Update to version 10.0.0
run this script:
migrate-mongo --version
It will return the error:
internal/modules/cjs/loader.js:892
throw err;
^
Error: Cannot find module 'mongodb'
Require stack:
- /Users/kuncorowicaksono/.nvm/versions/node/v14.17.6/lib/node_modules/migrate-mongo/lib/env/database.js
- /Users/kuncorowicaksono/.nvm/versions/node/v14.17.6/lib/node_modules/migrate-mongo/lib/migrate-mongo.js
- /Users/kuncorowicaksono/.nvm/versions/node/v14.17.6/lib/node_modules/migrate-mongo/bin/migrate-mongo.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
at Function.Module._load (internal/modules/cjs/loader.js:745:27)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object.<anonymous> (/Users/kuncorowicaksono/.nvm/versions/node/v14.17.6/lib/node_modules/migrate-mongo/lib/env/database.js:1:25)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/kuncorowicaksono/.nvm/versions/node/v14.17.6/lib/node_modules/migrate-mongo/lib/env/database.js',
'/Users/kuncorowicaksono/.nvm/versions/node/v14.17.6/lib/node_modules/migrate-mongo/lib/migrate-mongo.js',
'/Users/kuncorowicaksono/.nvm/versions/node/v14.17.6/lib/node_modules/migrate-mongo/bin/migrate-mongo.js'
]
}
Expected behavior
Return the version of migrate-mongo, e.g. 9.0.0
The text was updated successfully, but these errors were encountered:
coroo
changed the title
Upgrade to v10.0.0 and cannot check migrate mongo version
[BUG] Upgrade to v10.0.0 and cannot check migrate mongo version
May 4, 2023
Same error when I run migrate-mongo up with v10 globally installed in a Docker container with image node:14-alpine. The repository has [email protected] installed which also requires [email protected], defined in the package-lock.json file. I can see it locally for the repository in node_modules/mongodb.
EDIT: Seems that v10 (e4d9446) of this package now requires MongoDB 4 or 5 as a peer dependency. With Node 14 peer dependencies aren't automatically installed so it so it cannot find a mongodb installation which matches this condition since I'm still using [email protected].
Describe the bug
I just update the v10.0.0 and got an error when checking version.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Return the version of migrate-mongo, e.g. 9.0.0
The text was updated successfully, but these errors were encountered: