Please restore `--nofetch` flag to support Yarn
See original GitHub issueWe’re using Yarn and without --nofetch
our node_modules
folder gets screwed by npm (invoked by cordova-fetch
). We would really really like --nofetch
back to be able to work.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:31 (12 by maintainers)
Top Results From Across the Web
[GitHub] [cordova-cli] QuentinFarizon commented ... - The Mail Archive
... commented on issue #303: Please restore `--nofetch` flag to support Yarn ... hook that restores node_modules after cordova has finished messing with...
Read more >Tools Released! - Apache Cordova
Cordova 8 is making our builds almost impossible (due to --no-fetch removal). We are using yarn! Yarn is popular, please please support yarn!...
Read more >ses | Yarn - Package Manager
SES is hardened JavaScript. SES stands for fearless cooperation. This package is a SES shim for JavaScript features proposed to ECMA TC-39. Hardened...
Read more >Unable to set engine-strict flag with yarn - node.js
but it led to following error when I run yarn install ... run "yarn config -v" to see the list of settings supported...
Read more >DROPS Baby Merino - Superwash treated extra fine merino ...
DROPS Baby Merino is a 100% extra fine merino wool yarn that's super soft, ... Please be aware that the colours shown may...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would love to do that, but people need to be able to run commands like
cordova platform add
andcordova plugin add
, and that needs to add the platform/plugin to package.json and install it into node_modules. We need to use npm to do that.What we can do (and I’m working on this) is to not run any package management commands as part of
cordova prepare
. We should tell people to run npm/yarn/pnpm themselves and then look for what we need in node_modules, and warn if we can’t find it.Hello guys, here at my company we are using Cordova (and Ionic) to make some mobile apps.
We have a Jenkins agent doing Android builds with the following steps:
npm install
rm -rf platforms/ plugins/
cordova prepare android
cordova compile android --release
We have a mix of registry, git and local plugins and currently the prepare step takes a long time. From what I could understand cordova uses npm to install everything again, even though the install step already placed everything inside
node_modules
.I tried using Yarn and pinning
cordova-fetch
to the patched version (apache/cordova-fetch@10870103c0d2a58ce0d8b91cf14053dd0c315b20) but npm is still being called for git and local dependencies.I can’t help but wonder if it wouldn’t be better if cordova ditched the dependency manager role and only used the node resolution algorithm to find the referenced plugins (and platforms), allowing the user to pick whatever package manager he prefers.