Rafael@DESKTOP-ECS4OGN MINGW64 /c/Alura/NODEJS-STREAMING-DADOS (rafareis) $ npm start
project-nodejs-rest@1.0.0 start C:\Alura\NODEJS-STREAMING-DADOS nodemon index.js
[nodemon] 2.0.7
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json[nodemon] starting node index.js
conectado com sucesso.
consign v0.1.6 Initialized in C:\Alura\NODEJS-STREAMING-DADOS
- .\controllers\atendimentos.js
- .\controllers\pets.js
C:\Alura\NODEJS-STREAMING-DADOS\models\atendimentos.js:13
=> { ^^
SyntaxError: Unexpected token '=>' at wrapSafe (internal/modules/cjs/loader.js:979:16) at Module.compile (internal/modules/cjs/loader.js:1027:27) at Object.Module.extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module.load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18) at Object. (C:\Alura\NODEJS-STREAMING-DADOS\controllers\atendimentos.js:2:21) at Module.compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) [nodemon] app crashed - waiting for file changes before starting...