Skip to main content
1 de 2

Error al intentar crear una aplicación con npx

necesito ayuda he intentado crear una aplicación de react o next con npx creat-react/next-app, pero me sale el siguiente error.


npm ERR! Windows_NT 10.0.22000
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\USER\\node_modules\\npm\\bin\\npm-cli.js" "install" "--no-audit" "--save" "--save-exact" "--loglevel" "error" "react" "react-dom" "[email protected]"
npm ERR! node v16.13.2
npm ERR! npm  v2.15.12
npm ERR! file C:\WINDOWS\system32\cmd.exe
npm ERR! path C:\WINDOWS\system32\cmd.exe
npm ERR! code ELIFECYCLE
npm ERR! errno -4058
npm ERR! syscall spawn C:\WINDOWS\system32\cmd.exe

npm ERR! [email protected] postinstall: `node -e "try{require('./postinstall')}catch(e){}"`
npm ERR! spawn C:\WINDOWS\system32\cmd.exe ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node -e "try{require('./postinstall')}catch(e){}"'.
npm ERR! This is most likely a problem with the core-js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node -e "try{require('./postinstall')}catch(e){}"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs core-js
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls core-js
npm ERR! There is likely additional logging output above.

Ya probé quitando el antivirus pero no funciono, tengo Windows 11 no creo que sea problema del sistema operativo, necesito una ayuda urgente.