Set up the Serverless Framework

From @jayair on Mon Apr 10 2017 00:59:04 GMT+0000 (UTC)

Link to chapter -

Copied from original issue:

From @zohaibshahzadTO on Wed May 17 2017 01:12:35 GMT+0000 (UTC)


I’m having another problem here as well creating an aws node.js service…any input would be greatly apppreciated!

From @fcostarodrigo on Sat Dec 02 2017 17:44:33 GMT+0000 (UTC)

Why aws-sdk was installed as a devDependencies? Shouldn’t it be installed in dependencies instead?

From @jayair on Sat Dec 02 2017 19:22:58 GMT+0000 (UTC)

@fcostarodrigo This portion of the setup is weird but better explained here -

From @fcostarodrigo on Mon Dec 04 2017 11:51:38 GMT+0000 (UTC)

I see. AWS already includes aws-sdk, so you don’t need to include it again.

From @jayair on Mon Dec 04 2017 17:51:35 GMT+0000 (UTC)


From @topguncharl on Wed Jan 31 2018 21:52:42 GMT+0000 (UTC)

in last ls response is 5 files not 4 -> handler.js node_modules package-lock.json package.json serverless.yml

From @jayair on Wed Jan 31 2018 23:43:26 GMT+0000 (UTC)

@topguncharl Thanks for the heads up. Tweaked the wording in the chapter.

From @mgeiser on Tue May 08 2018 15:06:19 GMT+0000 (UTC)

Under the “Install Node.js packages” section, you say “At the root of the project, run.”

It would be helpful to disambiguate by confirming the root of the project; I assume this is not the notes-app-api directory but the parent directory

From @mgeiser on Tue May 08 2018 15:09:17 GMT+0000 (UTC)

ok, I guess it was notes-app-api…

Everything was going well until the serverless step. Getting "serverless not found when trying to

It looks like it is failing to install? Have you been able to install any other npm packages?

Not sure, how would I test? I’m new to all of this, but the tutorial is so thorough it seemed manageable.

I’m not sure what is going on and why it’s failing to install.

I just went back to an npm install guide and re did it. Seems ok now. But now I’m not getting a response doing the Add a Create Note API mocks step.

Hmm. Can you post your serverless.yml?

where do I find that?

It should be in the root of your project.

I had scary red notices about vulnerabilities. I ran:

npm audit fix

And that made them magically go away.

Did you get this when you were setting it up for the first time?