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

flickering on Windows when doing "npm ci" #11683

Closed
flensrocker opened this issue Aug 23, 2022 · 7 comments
Closed

flickering on Windows when doing "npm ci" #11683

flensrocker opened this issue Aug 23, 2022 · 7 comments
Labels
blocked: retry with latest Retry with latest release or head. outdated scope: core core nx functionality type: bug

Comments

@flensrocker
Copy link

Current Behavior

When doing a fresh install with npm ci on a Windows 11 box there are multiple windows flickering.
I would like to start this in the background and do some other work until this is finished.
The flickering disrupts my work and the input focus is disturbed.

I use PowerShell and Windows Terminal.

Expected Behavior

No flickering windows.

Steps to Reproduce

Since I use nx for an Angular mono-repo, I can reproduce it with the following steps:

npx create-nx-workspace@latest --preset=angular
# choose org and name etc.
cd org
del .\package-lock.json
del -Recurse .\node_modules
npm install
npm ci

In this small example there aren't so much flickering, but there are some.
In my mono-repo with multiple projects there are way more.

Environment

❯ nx report

 >  NX   Report complete - copy this into the issue template

   Node : 16.16.0
   OS   : win32 x64
   npm  : 8.18.0

   nx : 14.5.8
   @nrwl/angular : 14.5.8
   @nrwl/cypress : 14.5.8
   @nrwl/detox : Not Found
   @nrwl/devkit : 14.5.8
   @nrwl/eslint-plugin-nx : 14.5.8
   @nrwl/express : Not Found
   @nrwl/jest : 14.5.8
   @nrwl/js : 14.5.8
   @nrwl/linter : 14.5.8
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : Not Found
   @nrwl/nx-cloud : Not Found
   @nrwl/nx-plugin : Not Found
   @nrwl/react : Not Found
   @nrwl/react-native : Not Found
   @nrwl/schematics : Not Found
   @nrwl/storybook : 14.5.8
   @nrwl/web : 14.5.8
   @nrwl/workspace : 14.5.8
   typescript : 4.7.4
   ---------------------------------------
   Local workspace plugins:
   ---------------------------------------
   Community plugins:
@flensrocker
Copy link
Author

If there are some diagnostics I can run to identify which commands cause the flickering, please tell me.

Thank you!

@AgentEnder AgentEnder added the scope: core core nx functionality label Aug 26, 2022
@igodorogea
Copy link

The flickering is actually a series of command windows(cmd.exe).
For me it happens on various operations, not just npm ci.
Here is an example for branch switch while running nx serve

2022-09-09.15-45-50.mp4

@flensrocker
Copy link
Author

#7492 seems like a fix to this problem. Maybe there are some other places where it should be applied? Or this fix doesn't work for everyone?

@FrozenPandaz
Copy link
Collaborator

This should be fixed by #14965

Can you please try again with the latest version?

@FrozenPandaz FrozenPandaz added the blocked: retry with latest Retry with latest release or head. label Mar 1, 2023
@thomas-ef
Copy link

This should be fixed by #14965

Can you please try again with the latest version?

Updated to 15.8.1 and seems to have fixed the issue for me.

What is weird is that the PR you mentioned was released in 15.7.0 but any 15.7.x version for me still made the cmd windows flicker.

@flensrocker
Copy link
Author

Works for me with nx 15.8.3

@github-actions
Copy link

github-actions bot commented Apr 8, 2023

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked: retry with latest Retry with latest release or head. outdated scope: core core nx functionality type: bug
Projects
None yet
Development

No branches or pull requests

5 participants