react.cordova
react.cordova copied to clipboard
error when I try to install the dependencies of my project
When I try to install the dependencies of a project that was already working (previously), I get the following error:

Any idea how to fix it?
If the CLI installed the project (you have to see package.json on the new folder), then try:
npm i --legacy-peer-deps
or npm i cordova_script
if it's work, run npm run build
Hi @orchuban,
I have found the solution to the problem, I expose it here to help the project, and to solve problems in the future, to someone who may have them:
The problem is in the version of node.js, curiously, from version 15, this error appears, but if you install the latest LTS of node in its version 14, this will not happen, and you will be able to do npm install normally.
I hope it helps someone!
All the best.
Thank you @robertomsen
Just additional confirmation; Experienced the same (running current node lts 16), force installing with --legacy-peer-deps made it work.
it happen for me with node v14.18.0
Solutions seems to be here also: https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported