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

fix: skip creation of log directory if logs-max is set to 0 #7033

Merged
merged 7 commits into from
Nov 29, 2023

Conversation

JJ
Copy link
Contributor

@JJ JJ commented Nov 28, 2023

If no logs are needed, don't call the task that creates the directory anyway. This goes mainly to fix #7032. Also, typo.

After all, it can fail.

This goes mainly to fix npm#7032
@JJ JJ requested a review from a team as a code owner November 28, 2023 14:08
lib/npm.js Outdated Show resolved Hide resolved
@JJ JJ changed the title Skip creation of log directory if it's set to an empty string Skip creation of log directory if logs-max is set to 0 Nov 29, 2023
@JJ JJ requested a review from wraithgar November 29, 2023 11:47
@wraithgar wraithgar changed the title Skip creation of log directory if logs-max is set to 0 fix: skip creation of log directory if logs-max is set to 0 Nov 29, 2023
@wraithgar
Copy link
Member

npm run lintfix should get you all green now.

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.

[BUG] Why is npm run writing into the .npm/_logs directory or creating it?
2 participants