Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

erro no NPM START

Estou recebendo esse erro:

C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front>npm start
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

> alura-med-front@0.1.0 start
> react-scripts start

(node:7712) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\postcss-safe-parser\node_modules\postcss\package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)
i 「wds」: Project is running at http://192.168.15.15/
i 「wds」: webpack output is served from
i 「wds」: Content not from webpack is served from C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\public
i 「wds」: 404s will fallback to /
Starting the development server...

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Failed to compile.

./src/containers/Signup/index.js
Module not found: Can't resolve 'aws-amplify' in 'C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\src\containers\Signup'
C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\watchpack\lib\chokidar.js:17
throw new Error(
^

Error: No version of chokidar is available. Tried chokidar@2 and chokidar@3.
You could try to manually install any chokidar version.
chokidar@3: Error: Cannot find module 'chokidar'
Require stack:
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\watchpack\lib\chokidar.js
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\watchpack\lib\DirectoryWatcher.js
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\watchpack\lib\watcherManager.js
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\watchpack\lib\watchpack.js
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\webpack\lib\node\NodeWatchFileSystem.js
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\webpack\lib\node\NodeEnvironmentPlugin.js
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\webpack\lib\webpack.js
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\react-scripts\scripts\start.js
chokidar@2: Error: Cannot find module 'watchpack-chokidar2'
Require stack:
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\watchpack\lib\chokidar.js
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\watchpack\lib\DirectoryWatcher.js
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\watchpack\lib\watcherManager.js
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\watchpack\lib\watchpack.js
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\webpack\lib\node\NodeWatchFileSystem.js
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\webpack\lib\node\NodeEnvironmentPlugin.js
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\webpack\lib\webpack.js
- C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\react-scripts\scripts\start.js

    at Object.<anonymous> (C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\watchpack\lib\chokidar.js:17:7)    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Users\thiag\Documents\Cursos\Alura\aws\curso-serverless-parte-2-master\aluramed-front\node_modules\watchpack\lib\DirectoryWatcher.js:9:16)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
1 resposta
solução!

instalei os pacotes chokidar e aws-amplify e funcionou, acho que vale atualizar o primeiro vídeo.