Tengo un proyecto de CRA que se está implementando con Heroku. La implementación en producción nunca ha sido un problema, pero ahora, cuando lo intento, aparece el siguiente error:
-----> Installing dependencies Installing node modules npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-8.0.1.tgz npm ERR! 404 npm ERR! 404 'serialize-javascript@5.0.1' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: npm ERR! /tmp/npmcache.fuUsQ/_logs/2022-01-31T04_29_54_312Z-debug.log -----> Build failedTodas las versiones de serialize-javascript que están instaladas:
% npm ls serialize-javascript on-borrowed-time@0.1.0 /Users/mpetersen/Documents/dev/on-borrowed-time ├─┬ eslint-loader@4.0.2 │ └─┬ webpack@4.44.2 │ └─┬ terser-webpack-plugin@1.4.5 │ └── serialize-javascript@4.0.0 └─┬ react-scripts@4.0.1 ├─┬ terser-webpack-plugin@4.2.3 │ └── serialize-javascript@5.0.1 └─┬ workbox-webpack-plugin@5.1.4 └─┬ workbox-build@5.1.4 └─┬ rollup-plugin-terser@5.3.1 └── serialize-javascript@4.0.0¿Alguien sabe por qué 'serialize-javascript@5.0.1' no está en el registro de npm? Intenté actualizar los scripts de reacción, pero causa otros problemas de dependencia en mi proyecto.