soliantconsulting / FileMakerID_token

Get a token for a FileMaker ID
MIT License
10 stars 9 forks source link

Error: Cannot find module 'http-errors' #4

Open kingfisheranalytics opened 3 years ago

kingfisheranalytics commented 3 years ago

OSX 10.15.7. Initial install on Visual Studio Code v.1.50.1 - fails following install instruction.

Error trace: Error: Cannot find module 'http-errors' Require stack:

wimdecorte commented 3 years ago

Did you do "npm install" from the command line in the folder where you downloaded the node code?

huguesl commented 3 years ago

I'm on mac and getting the same error as above. I did run npm install, it installed packages but does not resolve the issue.

wimdecorte commented 3 years ago

from inside the project folder, run the install command listed to the right on https://www.npmjs.com/package/http-errors

huguesl commented 3 years ago

Thank you, I installed that package, ran npm install again... everything looks fine but not able to hit the users route for some reason. I just realized it's not the same error message! Read it too quickly. Below is the actual error message, in case you're interested in it. I need to host a solution within Unity3d which doesn't support node.js so I won't be able to reuse this solution anyways. I found another resource that shows how to do it within unity. I will try that. I just wanted to try this solution to have a quick way to test different endpoints. Thanks again.

Not Found

404

NotFoundError: Not Found
    at /Users/##/Desktop/Downloads/FileMakerID_token-master/app.js:27:8
    at Layer.handle [as handle_request] (/Users/##/Desktop/Downloads/FileMakerID_token-master/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/##/Desktop/Downloads/FileMakerID_token-master/node_modules/express/lib/router/index.js:317:13)
    at /Users/##/Desktop/Downloads/FileMakerID_token-master/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/Users/##/Desktop/Downloads/FileMakerID_token-master/node_modules/express/lib/router/index.js:335:12)
    at next (/Users/##/Desktop/Downloads/FileMakerID_token-master/node_modules/express/lib/router/index.js:275:10)
    at /Users/##/Desktop/Downloads/FileMakerID_token-master/node_modules/express/lib/router/index.js:635:15
    at next (/Users/##/Desktop/Downloads/FileMakerID_token-master/node_modules/express/lib/router/index.js:260:14)
    at Function.handle (/Users/##/Desktop/Downloads/FileMakerID_token-master/node_modules/express/lib/router/index.js:174:3)
    at router (/Users/##/Desktop/Downloads/FileMakerID_token-master/node_modules/express/lib/router/index.js:47:12)