Skip to content
Sign upLog in
← Back to Community

Issue with node.js

Profile icon
InvisibleOneHacker

Well I'm attempting to connect to a mongo db database with node.js, but I'm not that great with node.js and keep getting this error:

Repl.it: Updating package configuration --> npm ci npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /home/runner/MyTest/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/home/runner/MyTest/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /home/runner/.npm/_logs/2021-02-02T15_04_07_840Z-debug.log exit status 254 Repl.it: Package operation failed.

I'm trying to follow the tutorial from mongodb

Answered by Baconman321 [earned 5 cycles]
View Answer
Voters
Profile icon
InvisibleOne
Comments
hotnewtop
Profile icon
Baconman321

MongoDB isn't installed.

Go to that little cube and look up mongoDB.

The search results should come up click the package you want and click install (or anything like "install").

Profile icon
InvisibleOne

I ran npm install mongodb

@Baconman321

Profile icon
Baconman321

@InvisibleOne
That works too...

OOOO ALMOST 700 cycles.

I'm catching up to u!

Profile icon
InvisibleOne

starts spamming share with low effort posts
jk


@Baconman321

Profile icon
Baconman321

@InvisibleOne
I'm making a really big project (a JS library that will have a full blown wiki for documentation).

Don't expect to stay ahead of me for long...
>:D

Profile icon
InvisibleOne

Well I'm working on something big as well... although I probably won't finish it in a long long time
(it's a mini ERP system )


@Baconman321

Profile icon
gregory54

I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. 먹튀검증사이트

Profile icon
migoyo

I think this is an informative post and it is very beneficial and knowledgeable. Therefore, I would like to thank you for the endeavors that you have made in writing this article. All the content is absolutely well-researched. Thanks... อนิเมะ

Profile icon
darkuserZ

where can i find the complete log of a run ?

Profile icon
gregory54

You have a good point here!I totally agree with what you have said!!Thanks for sharing your views...hope more people will read this article!!! เว็บพนันเเทงบอล

Profile icon
Coder100

hit ctrl + shift + s and type in this: npm init -y
Most of these bugs can be fixed if you read the error.