Olá,
Baixei os arquivos disponibilizados pela Alura com foi pedido pelo professsor. Meu Node está baixado corretamente e VSCode também.
Quando executo o código npm run server aparece a seguinte mensagem:
PC - GIOVANNA@GIOVANA MINGW64 ~/Desktop/TypeScript/typescript-curso-1-arquivos-iniciais
$ npm run server
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
> alurabank@1.0.0 server
> lite-server --baseDir=dist
Did not detect a `bs-config.json` or `bs-config.js` override file. Using lite-server defaults...
** browser-sync config **
{
injectChanges: false,
files: [ './**/*.{html,htm,css,js}' ],
watchOptions: { ignored: 'node_modules' },
server: {
baseDir: 'dist',
middleware: [ [Function (anonymous)], [Function (anonymous)] ]
}
}
[Browsersync] Access URLs:
--------------------------------------
Local: http://localhost:3000
External: http://192.168.1.104:3000
--------------------------------------
UI: http://localhost:3001
UI External: http://localhost:3001
--------------------------------------
[Browsersync] Serving files from: dist
[Browsersync] Watching files...
[Browsersync] Couldn't open browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false)
package.json:
{
"name": "alurabank",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"server": "lite-server --baseDir=dist",
"start": "concurrently \"npm run watch\" \"npm run server\""
},
"author": "",
"license": "ISC",
"devDependencies": {
"concurrently": "^6.0.0",
"lite-server": "^2.6.1"
}
}