Please be patient, I'm new at this. I've set up myapp using this tutorial - https://code.visualstudio.com/docs/nodejs/nodejs-tutorial and now I'm trying to serve static files using this tutorial - https://expressjs.com/en/starter/static-files.html, but I'm getting errors and I'm lost as to how to fix them. The errors are below. Please help and thank you!
express.static : The term 'express.static' is not recognized
as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:9
+ app.use(express.static('public'))
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (express.static:
String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
You appear to be trying to execute a fragment of JS as a PowerShell script.
JS isn't PowerShell so it errors.
You need to: