Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cordova plugin add --nofetch --nosave does not work #478

Open
3 tasks done
Edmu opened this issue Nov 7, 2019 · 1 comment
Open
3 tasks done

cordova plugin add --nofetch --nosave does not work #478

Edmu opened this issue Nov 7, 2019 · 1 comment

Comments

@Edmu
Copy link

Edmu commented Nov 7, 2019

Bug Report

cordova plugin add flags --nosave --nofetch not working

What is expected to happen?

no changes to android.json, ios.json, fetch.json

What does actually happen?

plugin gets added to android.json, ios.json, fetch.json

Information

Command or Code

cordova plugin add ./localPlugins/someLocalPlugin/ --nosave --nofetch

Version information

[email protected] with:
[email protected]
[email protected]
[email protected]
[email protected]

Environment:
OS: darwin
Node: v10.9.0
npm: 6.2.0

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@raphinesse
Copy link
Contributor

raphinesse commented Nov 7, 2019

The --nofetch option has been removed (I can't remember in which version). The --nosave option is basically broken because of behavior of npm we can't control and thus is probably going to be removed in Cordova 10.

The recommendation of the Cordova team is to save your platforms and plugin dependencies to package.json and to not commit your platforms and plugins folders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants