oi bom o código executa mais não aparesse do lado de folders do editor!
Microsoft Windows [versão 10.0.19041.746]
(c) 2020 Microsoft Corporation. Todos os direitos reservados.
C:\Users\geova>npm -v
6.14.8
C:\Users\geova>npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See `npm help init` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
package name: (projeto-nodejs-rest)
version: (1.0.0)
description:
git repository:
keywords:
license: (ISC)
About to write to C:\Users\geova\package.json:
{
"name": "projeto-nodejs-rest",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Geovane Ferreira",
"license": "ISC",
"dependencies": {
"express": "^4.17.1"
},
"devDependencies": {},
"description": ""
}
Is this OK? (yes) yes
C:\Users\geova>npm install express
npm WARN projeto-nodejs-rest@1.0.0 No description
npm WARN projeto-nodejs-rest@1.0.0 No repository field.
+ express@4.17.1
updated 1 package and audited 50 packages in 4.186s
found 0 vulnerabilities
C:\Users\geova>
https://drive.google.com/file/d/1F6_ETZ1PJTzuX6DjtF7CkO5YClH60g24/view?usp=sharing