Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monk not working with node v18.8 on windows 11 #347

Open
craigbroadbear opened this issue Sep 1, 2022 · 2 comments
Open

monk not working with node v18.8 on windows 11 #347

craigbroadbear opened this issue Sep 1, 2022 · 2 comments

Comments

@craigbroadbear
Copy link

Works fine with node.exe v16.16.0

e.g. the following code hangs on the count call, then aborts without any error after about 10 seconds.
import monk from 'monk'

import monk from 'monk';
const db = monk('mongodb://localhost:27017/somedb');
const count = await db.get('somecoll').count();
console.log(count);
@staceLIVE
Copy link

monk is now deprecated, switch to mongoose instead

@craigbroadbear
Copy link
Author

I got it to work by changing the connecting string to use 127.0.0.1 instead of localhost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants