15Dkatz/dragonstack-guides

Errors running backend

kanyo33 opened this issue · 2 comments

I tried to build the project from the ground up and cloned the project and got the same errors when i tried to run npm run configure:

backend@1.0.0 configure C:\projects\dragonstackgit\dragonstack-guides-master\backend
./bin/configure_db.sh

'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! backend@1.0.0 configure: ./bin/configure_db.sh

It also seems like the backend is not connecting to the server properly... perhaps these two problems are linked in some way.

... found a way around it by running sh ./bin/configure_db.sh directly on git bash... npm run configure does still not work, but at least i can configure the project now and see the changes

I haven't run into this particular error, but the following steps seem to help for this kind of errors:

cd into the backend folder, and npm install (it overrides the old node_modules...)

cd into the frontend folder, and npm install (it overrides the old node_modules...)

cd into the main directory, and npm install (it overrides the old node_modules...)

npm start

Let me hear if this works for you

Hey thanks for getting back.
Unfortunately, that didn't work.
The problem could be with git or postgres. I'll get back if i find the solution to the problem, but for now, I'll work around it until the problem becomes unbearable. If anyone else experiences this issue, feel free to comment and perhaps we can look together for a solution.