Skip to content

Work around npm bug when uninstalling old cordova platforms#78

Merged
erisu merged 1 commit intoapache:masterfrom
raphinesse:workaround-npm-bug
Oct 31, 2019
Merged

Work around npm bug when uninstalling old cordova platforms#78
erisu merged 1 commit intoapache:masterfrom
raphinesse:workaround-npm-bug

Conversation

@raphinesse
Copy link
Contributor

Motivation and Context

When using npm@>=6.11.0 on Windows, npm uninstall of cordova-android@5.1.1 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 `cordova-android@5.1.1` 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