Link Search Menu Expand Document

Troubleshooting

SymptomsProbable CauseAction
Unable to load the page in local hostThe URL does not match the port numberDouble check what port you set in server.js and if your browser URL is localhost:PORT, PORT being the number you set
 Missing the express app listen code.Make sure this code is in app.js: app.listen(port, () => {})
 There is another app running on the same port numberMake sure the port in app.listen(port, () => {}) is at an available port, anything above 1024 to 65535, some sample port numbers to try are 8000, 3000, 8080.
 file changes were not savedSave and retry
 Nodemon crashedType rs in the terminal to restart nodemon
npm init does not create the package.json fileThe terminal path is pointing to the wrong directoryUse the cd command in terminal to locate to the correct directory