Like quite a few people I tried out the debugging example here.
and got the same error that was described here.
but the accepted answer does not work for me, I think it is because I have a gap in my understanding as I don’t normally develop in node.
To confirm the debugging example works fine when I create the example on AWS or run it locally in the console
but if I run from visual studio code I get the following error
The error makes perfect sense as there is no folder for \node_modules\serverless\bin\serverless within the project. but I am now stuck. My question is
"In the stack overflow question above have the developers pulled serverless into the project so that \node_modules\serverless\bin\serverless now contains a copy of what is stored in AppData\Roaming\npm\node_modules\serverless\bin (which is where the console runs serverless from) "?
or are they doing something else? could someone point me in the right direction?