Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Run install with force win32 #47

Merged
merged 5 commits into from
Jan 9, 2020
Merged

Conversation

florian-richter
Copy link
Contributor

@florian-richter florian-richter commented Jan 9, 2020

Proposed Changes

sap-cloud-sdk package was failing on some windows machines. This uses the --force flag to fix the issue.

Further comments

There is an alternative solution: change the name property in the <projectDir>/package.json before running npm install in the outputDir and changing it back afterwards. This might create unwanted changes (JSON.stringify() creating a different order, command crashing and the restore not working, ...) which can be hard to test for thoroughly. But this alternative avoids the side-effects of --force (always loading from the registry instead of using the npm cache, ...).

I decided to use --force as it seemed more robust and should only rarely affect users. Package is not a common command for developers (only necessary for a deploy). CI/CD will be running on Linux in most cases and therefore run without --force. My assumption is that most deployments are done by CI/CD pipeline and therefore this will have a negligible impact.

@florian-richter florian-richter merged commit 970b742 into master Jan 9, 2020
@florian-richter florian-richter deleted the run-install-with-force-win32 branch January 9, 2020 12:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants