1
resposta

o meu esta dando este erro e nao esta funcionando

npm start

spa-js-vanilla@1.0.0 start /home/thiago/Área de Trabalho/spa-js-vanilla/projeto webpack --config webpack.config.js

sh: 1: webpack: not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! spa-js-vanilla@1.0.0 start: webpack --config webpack.config.js npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the spa-js-vanilla@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in: npm ERR! /home/thiago/.npm/logs/2020-11-30T2038_00_181Z-debug.log

1 resposta

Fala ai Thiago, tudo bem? Acho que tu precisa instalar o Webpack global na maquina para rodar via webpack.

Para não precisar fazer isso, instale ele como dependência do projeto e coloque esse comendo em um scripts do package.json.

Espero ter ajudado.

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