Setup Issue
noama163 opened this issue · 8 comments
Hey,
After installing everything setting the MONGODB_URI to the correct one from Atlas and running everything.
For some reason when I run:
npm run db:seed
It outputs this:
owasp-nodejs-goat@1.3.0 db:seed
cross-env NODE_ENV=test grunt db-reset
Running "db-reset" task
db-reset:
Error: Command failed: NODE_ENV=test node artifacts/db-reset.js
Also for some reason now it started to say:
sh: cross-env: command not found
I am running:
npm list
And cross-env is not listed there
Also tried running the docker version and when I go into the localhost:4000 it states
ERR_EMPTY_RESPONSE
:(
@noama163 can you share if this is still happening to you with the setup?
I see we have both cross-env
and grunt
as part of the development dependencies. Can you make sure you install all of them?
Error is still happening with both the source and docker versions when trying to setup the app
@snow-kluster can you please provide background on the environment you are testing this with?
@snow-kluster can you please provide background on the environment you are testing this with?
I am using
OS: Ubuntu 22.04
node version: 18.14.2
mongo DB version: 6.0.4
docker version: 23.0.1
However I was able to fix the issue by adding "grunt-nodemon" to the package.json.
You need Mongo 4
You need Mongo 4
Thanks, I fixed the issue. able to setup the application with docker and source.