You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "fabriciovasc (via GitHub)" <gi...@apache.org> on 2024/11/07 15:56:01 UTC
[I] Older cordova-lib packages redirect to cordova-lib@12.0.2 [cordova-cli]
fabriciovasc opened a new issue, #653:
URL: https://github.com/apache/cordova-cli/issues/653
# 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
```shell
npm i -g cordova@12
cordova -v
```
Expected:
```shell
12.0.0 (cordova-lib@12.0.1)
```
Got:
```shell
12.0.0 (cordova-lib@12.0.2)
```
### Environment, Platform, Device
```shell
ionic info
```
```shell
Ionic:
Ionic CLI : 6.20.9 (C:\ProgramData\nvm\v14.21.3\node_modules\@ionic\cli)
Ionic Framework : ionic-angular 3.9.8
@ionic/app-scripts : 3.2.4
Cordova:
Cordova CLI : not installed
Cordova Platforms : not available
Cordova Plugins : not available
Utility:
cordova-res : 0.15.4
native-run : 2.0.1
System:
NodeJS : v14.21.3 (C:\Program Files\nodejs\node.exe)
npm : 6.14.18
OS : Windows 10
```
### Version information
```shell
Ionic:
Ionic CLI : 6.20.9 (C:\ProgramData\nvm\v14.21.3\node_modules\@ionic\cli)
Ionic Framework : ionic-angular 3.9.8
@ionic/app-scripts : 3.2.4
Cordova:
Cordova CLI : not installed
Cordova Platforms : not available
Cordova Plugins : not available
Utility:
cordova-res : 0.15.4
native-run : 2.0.1
System:
NodeJS : v14.21.3 (C:\Program Files\nodejs\node.exe)
npm : 6.14.18
OS : Windows 10
```
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Older cordova-lib packages redirect to cordova-lib@12.0.2 [cordova-cli]
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek closed issue #653: Older cordova-lib packages redirect to cordova-lib@12.0.2
URL: https://github.com/apache/cordova-cli/issues/653
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Older cordova-lib packages redirect to cordova-lib@12.0.2 [cordova-cli]
Posted by "fabriciovasc (via GitHub)" <gi...@apache.org>.
fabriciovasc commented on issue #653:
URL: https://github.com/apache/cordova-cli/issues/653#issuecomment-2462639355
> 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](https://github.com/nodejs/release?tab=readme-ov-file#end-of-life-releases) 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 not 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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Older cordova-lib packages redirect to cordova-lib@12.0.2 [cordova-cli]
Posted by "fabriciovasc (via GitHub)" <gi...@apache.org>.
fabriciovasc commented on issue #653:
URL: https://github.com/apache/cordova-cli/issues/653#issuecomment-2462616245
## Temp solution
I forked and forced the cordova-lib version
https://github.com/fabriciovasc/cordova-cli/commit/2b12aee06ec2531379df3f87af9a6a4f7fa31ab2
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Older cordova-lib packages redirect to cordova-lib@12.0.2 [cordova-cli]
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #653:
URL: https://github.com/apache/cordova-cli/issues/653#issuecomment-2462624366
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](https://github.com/nodejs/release?tab=readme-ov-file#end-of-life-releases) 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 an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Older cordova-lib packages redirect to cordova-lib@12.0.2 [cordova-cli]
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #653:
URL: https://github.com/apache/cordova-cli/issues/653#issuecomment-2462671946
> 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`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org