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

Work around npm bug when uninstalling old cordova platforms #78

Merged
merged 1 commit into from
Oct 31, 2019

Conversation

raphinesse
Copy link
Contributor

Motivation and Context

When using npm@>=6.11.0 on Windows, npm uninstall of [email protected] will leave an empty folder node_modules/cordova-android/node_modules behind. This causes one of our tests to fail but it is very likely an issue with npm. Furthermore this is very unlikely to affect users of cordova-fetch in production.

Description

We just install a later version of cordova-android and cordova-ios in the test. The exact version or even package installed does not really matter, the test just asserts that a package can be installed and then uninstalled .

Testing

CI tests are passing again.

When using `npm@>=6.11.0` on Windows, `npm uninstall`
of `[email protected]` will leave an empty folder
`node_modules/cordova-android/node_modules` behind. This causes one of
our tests to fail but it is very likely an issue with npm. Furthermore
this is very unlikely to affect users of `cordova-fetch` in production.
@raphinesse raphinesse added the bug label Oct 30, 2019
@raphinesse raphinesse requested a review from erisu October 30, 2019 19:02
Copy link
Member

@erisu erisu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thank you for looking into this!

@erisu erisu merged commit 6e78b1a into apache:master Oct 31, 2019
@raphinesse raphinesse deleted the workaround-npm-bug branch October 31, 2019 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants