1
resposta

erro npm install e npm run watch

rodando no terminal essas são as mensagens:

ubuntu@DESKTOP-9314L0B:/mnt/e/Dropbox/Computacao/Alura/javascript/11-webpack/projeto-webpack/client$ npm install npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN deprecated babel-preset-es2017@6.24.1: Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update! npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN client@1.0.0 No repository field.

npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in: npm ERR! /home/ubuntu/.npm/logs/2021-02-04T1409_31_699Z-debug.log


ubuntu@DESKTOP-9314L0B:/mnt/e/Dropbox/Computacao/Alura/javascript/11-webpack/projeto-webpack/client$ npm run watch

client@1.0.0 watch /mnt/e/Dropbox/Computacao/Alura/javascript/11-webpack/projeto-webpack/client babel app-src -d app --source-maps --watch

sh: 1: babel: not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! client@1.0.0 watch: babel app-src -d app --source-maps --watch npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the client@1.0.0 watch script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/ubuntu/.npm/logs/2021-02-04T1410_40_732Z-debug.log

1 resposta

Oi, Daniel, tudo bem?

O erro do comando no npm install foi com o projeto base do curso? Ou com o seu? Assim conseguirei entender melhor e poder te ajudar :}

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software