Issues using of NPM packages

I have tried 3 different npm packages http, request, got they all come back with different errors on deployment, I know these packages work I have used them before in previous node projects.

Serverless looks like it’s trying to execute some part of the code, and getting back an error which without the proper parameter,

  1. installed the package with --save
  2. added the package to plugins in the yml
  3. added variable require to the handler.js

Does anyone have any suggestions on getting NPM packages to work.

just need a working package to connect to 3rd party api services, to draw in data.

Thx,

realizing now that some packages are included with Node.js so they don’t need to be installed with the project, just referenced.

https://nodejs.org/api/https.html