Erro ao executar o código
npm run build-dev
Msg de erro no terminal
gui@pop-os:~/Área de Trabalho/Alura/TypeScript/Webpack: Manipulando módul
os na sua webapp/projeto-webpack/client$ npm run build-dev
> client@1.0.0 build-dev
> webpack --config webpack.config.js
sh: 1: webpack: not found
npm ERR! code 127
npm ERR! path /home/gui/Área de Trabalho/Alura/TypeScript/Webpack: Manipulando módulos na sua webapp/projeto-webpack/client
npm ERR! command failed
npm ERR! command sh -c webpack --config webpack.config.js
npm ERR! A complete log of this run can be found in:
npm ERR! /home/gui/.npm/_logs/2021-01-16T08_47_08_553Z-debug.log
package.json
{
"name": "client",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build-dev": "webpack --config webpack.config.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"reflect-metadata": "^0.1.10"
},
"devDependencies": {
"babel-core": "^6.25.0",
"babel-loader": "^8.2.2",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-es2017": "^6.24.1",
"webpack": "^3.1.0"
}
}
Já foi executado o comando de instalação de dependência
npm install