Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

446
Views
Webpack cuando se ejecuta en la terminal da un "error de error: opción desconocida '-p'"

Quería ejecutar Webpack usando npm run build pero da un error en la terminal

 error: unknown option '-p' [webpack-cli] Run 'webpack --help' to see available commands and options npm ERR! code ELIFECYCLE C:\React Projects\Webpack\Project>

ingrese la descripción de la imagen aquí

paquete.json

 { "name": "project", "version": "1.0.0", "description": "", "main": "index.js", "dependencies": { "webpack": "^5.11.1" }, "devDependencies": { "webpack-cli": "^4.3.1" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack -p", "watch": "webpack --watch" }, "author": "", "license": "ISC" }
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Parece que se actualizó para ser --mode production en una versión reciente.

https://github.com/webpack/webpack-cli/issues/1934

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!