Closed fabriciovasc closed 3 weeks ago
I forked and forced the cordova-lib version
https://github.com/fabriciovasc/cordova-cli/commit/2b12aee06ec2531379df3f87af9a6a4f7fa31ab2
This is intentional. We don't pin on exact versions, we pin using ^
, which means the latest version within the major range. This is so installs and npm upgrade
will pull in the latest patches for bug fixes. These are non-breaking changes.
NodeJS 14 is also out of support since 2023. Cordova dropped support for NodeJS 12 - 16 in v12, making the minimum NodeJS 18 which was the active LTS at the time of release.
This is intentional. We don't pin on exact versions, we pin using
^
, which means the latest version within the major range. This is so installs andnpm upgrade
will pull in the latest patches for bug fixes. These are non-breaking changes.NodeJS 14 is also out of support since 2023. Cordova dropped support for NodeJS 12 - 16 in v12, making the minimum NodeJS 18 which was the active LTS at the time of release.
Yes, I understand that it is intentional.
But there are many projects with ionic 3 and angular 4 using the latest cordova with node 14.
If you can move to a topic that helps other developers with the same stack.
Thanks for the reply.
Yes, I understand that it is not intentional.
Installing the latest patches available IS intentional.
But there are many projects with ionic 3 and angular 4 using the latest cordova with node 14.
cordova@11 is the last version to support NodeJS 14. So if you require NodeJS 14 a specific reason, then you'll need cordova@11
, which will install cordova-lib@11
.
Bug Report
Problem
What is expected to happen?
Cordova 12 continues to work on platforms with node 14 or older
What does actually happen?
When version 12 is installed, cordova-lib@12.0.1 is not installed as described in package.json
The cordova-lib@12.0.2 package is kept as default
Information
Command or Code
Try to install cordova@12 and check version
Expected:
Got:
Environment, Platform, Device
Version information
Checklist
Attachments