Repository navigation
npx create-nx-workspace produces error.log file #34482
Copy link
Copy link
Labels
communityThis is a good first issue for contributingThis is a good first issue for contributingoutdatedpriority: mediumMedium Priority (not high, not low priority)Medium Priority (not high, not low priority)scope: corecore nx functionalitycore nx functionalitytype: bug
Description
Activity
- addedscope: miscMisc issuesMisc issuespriority: mediumMedium Priority (not high, not low priority)Medium Priority (not high, not low priority)
on Feb 19, 2026 - addedscope: corecore nx functionalitycore nx functionalitycommunityThis is a good first issue for contributingThis is a good first issue for contributingand removedscope: miscMisc issuesMisc issues
on Mar 14, 2026 The
error.logfile is created byexecAndWait()inpackages/create-nx-workspace/src/utils/child-process-utils.ts(lines 61-62). Every time any command fails, it writes stdout+stderr toerror.login the CWD. Whenghisn't installed, the GitHub push flow callsexecAndWait('gh api user...')which fails and creates this file.The cleanest fix would be to add an option to
execAndWait(e.g.,skipErrorLog: boolean) and pass it when runningghcommands that can fail gracefully. Alternatively, theerror.logfile could be cleaned up after workspace creation.- added 2 commits that reference this issue
on Mar 25, 2026 - added a commit that references this issue
on Apr 6, 2026 github-actions commented
on Apr 25, 2026 on Apr 25, 2026 – with GitHub ActionsContributorMore actionsThis issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
- locked as resolved and limited conversation to collaborators
on Apr 25, 2026
Metadata
Metadata
Assignees
Labels
communityThis is a good first issue for contributingThis is a good first issue for contributingoutdatedpriority: mediumMedium Priority (not high, not low priority)Medium Priority (not high, not low priority)scope: corecore nx functionalitycore nx functionalitytype: bug
Current Behavior
npx create-nx-workspaceproduces error.log file with'gh' is not recognizederrorExpected Behavior
No
error.logfiles must be present in generated projectGitHub Repo
No response
Steps to Reproduce
npx create-nx-workspace@22.5.1 nx2251emptytemplate --template nrwl/empty-templatecat nx2251emptytemplate/error.logNx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response