Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

server wont start with no error #308

Closed
codepolariz opened this issue Feb 18, 2021 · 1 comment
Closed

server wont start with no error #308

codepolariz opened this issue Feb 18, 2021 · 1 comment

Comments

@codepolariz
Copy link

udacity-c2-restapi@1.0.0 dev C:\udacity........\

ts-node-dev --respawn --transpile-only ./src/server.ts

Using ts-node version 8.3.0, typescript version 3.5.3

@codepolariz
Copy link
Author

codepolariz commented Feb 19, 2021

Fixed this issue after hours of troubleshooting.
npm install node-pg-migrate pg -using this link https://www.npmjs.com/package/node-pg-migrate?activeTab=readme
Then the main entry in the package.json was wrong
change ------- "main": "src/server.js"
to --------"main": "./src/server.js"

The migration script will run and tables will be created in postgre database

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

No branches or pull requests

1 participant