react.cordova icon indicating copy to clipboard operation
react.cordova copied to clipboard

error when I try to install the dependencies of my project

Open robertomsen opened this issue 3 years ago • 6 comments
trafficstars

When I try to install the dependencies of a project that was already working (previously), I get the following error:

image

Any idea how to fix it?

robertomsen avatar Jun 28 '22 21:06 robertomsen

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

orchuban avatar Jun 29 '22 09:06 orchuban

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.

robertomsen avatar Jun 29 '22 09:06 robertomsen

Thank you @robertomsen

orchuban avatar Jun 29 '22 09:06 orchuban

Just additional confirmation; Experienced the same (running current node lts 16), force installing with --legacy-peer-deps made it work.

bslikkerveer avatar Aug 04 '22 08:08 bslikkerveer

it happen for me with node v14.18.0

malutanpetronel avatar May 03 '23 12:05 malutanpetronel

Solutions seems to be here also: https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported

malutanpetronel avatar May 03 '23 12:05 malutanpetronel