Comments (7)
macos-release version 2.5.0 is required.
We do not pin exact direct dependent packages and some of these sub packages are not pinned too. Just reinstall Cordova CLI so it will fetch [email protected]
npm uninstall -g cordova
npm install -g cordova
$ npm ls macos-release
[email protected] /Users/cdv/n/lib/node_modules/cordova
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
from cordova-cli.
This is happening again with Ventura ... we need a future proof fix
Probably just get rid of insight
package. We use it to display the "consumer" name of the Mac version instead of the Darwin version.
But unfortunately the underlying package can't see in the future nor do they gracefully handle unknown Darwin versions. Instead we can just use the NodeJS APIs (OS.platform()
/ OS.release()
/ OS.version()
). Platform will provide darwin
on macs, and either release()
or version()
will provide the version. OS.version()
might be pretty much a direct replacement since it returns "Windows 10 Pro"
rather than the actual OS version. (release()
appears to return the actual version, e.g: 10.0.19045
Someone with a mac can confirm, but this is probably a better path forward and we get to manage one less dependency.
from cordova-cli.
I forked and updated the required libs to make it work. I can send a PR if it's allowed.
The issue is with "os-name" lib. It should be updated to "^5.0.0".
I updated the libs related below, but it didn't update the lib we want, so I added as dependency into main package.json and it worked.
Here's the solution for unblocking you:
- Clone the cli project2
- Update those libs:
- "cordova-lib": "^10.1.0",
- "insight": "^0.11.1",
- "systeminformation": "^5.9.9",
- "os-name": "^5.0.0",
- run npm link cordova
from cordova-cli.
Before re-install:
[email protected] /usr/local/lib/node_modules/cordova
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
> cordova build ios
/usr/local/lib/node_modules/cordova/node_modules/macos-release/index.js:27
const [name, version] = nameMap.get(release);
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
After re-install:
[email protected] /usr/local/lib/node_modules/cordova
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
This problem was solved by reinstalling.
However, if you upgrade macOS 12 with it already cordova 10 installed,
I suspect others will have the same problem.
Because, it's been over a year since the cordova 10.0.0 version was released.
https://github.com/apache/cordova-cli/blob/master/package-lock.json
3860 lines:
"macos-release": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.4.1.tgz",
"integrity": "sha512-H/QHeBIN1fIGJX517pvK8IEK53yQOW7YcEI55oYtgjDdoCQQz7eJS94qt5kNrscReEyuD/JcdFCm2XBEcGOITg=="
},
I know that dependencies are pinned to insight 0.10.3.
If you update the insight dependency to version 0.11.1,
I think there should be no problem.
https://github.com/apache/cordova-cli/blob/master/package.json
32 lines:
"insight": "^0.10.3",
from cordova-cli.
For posterity, here's the issue from the dependency repository.
from cordova-cli.
This is happening again with Ventura ... we need a future proof fix
from cordova-cli.
Yeah looks like the insight package is basically throwing in the towel on this issue, and the creator removed it from his own product: yeoman/insight#83. So that is likely the best path forward for cordova as well.
from cordova-cli.
Related Issues (20)
- Should we give up cordova? HOT 1
- Updation of transitive dependency [email protected] to version greater than 12.1.0 HOT 4
- Template directory on read-only filesystem makes cordova crash HOT 8
- TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) HOT 5
- Cordova cli is installing a very old plugin HOT 4
- Update the macos-release package to 3.1.0 to include macos 13 HOT 1
- Build failing when edit-config tag is added to config.xml HOT 1
- 'cordova build ios' taking over 5 minutes to compile and displaying verbose info in terminal HOT 6
- '--searchpath' not working properly on Cordova 11.1
- Cordova has dependencies which use deprecated libraries HOT 4
- 'cordova platform add windows' broken HOT 1
- Create has error on WSL HOT 3
- Optionally serve browser platform over HTTPS HOT 2
- SyntaxError: Unexpected token while upgrade cordova 11.0.0 to 12.0.0 on ios HOT 6
- Cordova 12.0.0 - JAVA Warning on project import to Android Studio (Electric Eel 2022.1.1) HOT 1
- Insight dependency with open CVE HOT 1
- Cordova-cli on MacOS Ventura? HOT 2
- Supporting Windows Platform HOT 1
- Script for plugin hook "after_plugin_rm" does not work
- splash art causes unhelpful error traces HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-cli.