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

Prevent installing the npm package undefined #30

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

thomasdax98
Copy link
Member

@thomasdax98 thomasdax98 commented Nov 8, 2024

Problem

The npm package undefined was installed in projects when executing the upgrade script

Bildschirmfoto 2024-11-08 um 12 45 34

Reason

If it was a non-prelease version, an empty string was added to the npm install command. This was interpreted as undefined which was then converted to a string, causing npm to install the package.

Bildschirmfoto 2024-11-08 um 12 45 40

Solution

Don't add an empty string

Bildschirmfoto 2024-11-08 um 12 46 54

@thomasdax98 thomasdax98 self-assigned this Nov 8, 2024
@johnnyomair johnnyomair merged commit 5b43529 into main Nov 11, 2024
1 check passed
@johnnyomair johnnyomair deleted the prevent-installing-undefined branch November 11, 2024 10:25
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

Successfully merging this pull request may close these issues.

2 participants