yarn foi instalado certo webpack server instala desse jeito:
warning Lockfile has incorrect entry for "fsevents@^1.2.7". Ignoring it. warning webpack-dev-server > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. [2/4] Fetching packages... info [email protected]: The platform "linux" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. info [email protected]: The platform "linux" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning " > [email protected]" has unmet peer dependency "webpack@>=2". warning " > [email protected]" has unmet peer dependency "[email protected] || 5.x.x". warning "webpack-dev-server > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". [4/4] Building fresh packages... success Saved lockfile. success Saved 23 new dependencies. info Direct dependencies └─ [email protected] info All dependencies ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] └─ [email protected] Done in 19.93s
e da esse erro quando coloco para rodar:
Here is the Error
abel@Pclinux:~/Documentos/ProjetoJavaScript$ yarn dev yarn run v1.22.5 $ webpack-dev-server --mode=development node:internal/modules/cjs/loader:922 throw err; ^ Error: Cannot find module 'webpack' Require stack: - /home/abel/Documentos/ProjetoJavaScript/node_modules/webpack-dev-server/bin/webpack-dev-server.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:15) at Function.Module._load (node:internal/modules/cjs/loader:763:27) at Module.require (node:internal/modules/cjs/loader:991:19) at require (node:internal/modules/cjs/helpers:92:18) at Object.<anonymous> (/home/abel/Documentos/ProjetoJavaScript/node_modules/webpack-dev-server/bin/webpack-dev-server.js:12:17) at Module._compile (node:internal/modules/cjs/loader:1102:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1131:10) at Module.load (node:internal/modules/cjs/loader:967:32) at Function.Module._load (node:internal/modules/cjs/loader:807:14) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/abel/Documentos/ProjetoJavaScript/node_modules/webpack-dev-server/bin/webpack-dev-server.js' ] } error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. abel@Pclinux:~/Documentos/ProjetoJavaScript$
1.4m articles
1.4m replys
5 comments
57.0k users