Webstorm freezes on close when node process is running

Steps to reproduce:

  1. Open WebStorm react project
  2. Start app with npm run start (Run window opens)
  3. Try to close WebStorm app

Expected result:

  • WebStorm should kill the terminal in Run window automatically and close itself

Result:

  • Whole app freezes
  • Run window displays propmt to terminate process, which you cannot answer
  • You have to kill WebStorm with Task Manager

Installed versions:

  • WebStorm: 2022.1
  • NodeJs: 14.15.4

 

Is there some setting affecting this behavior? I did not find any.

Thank you.

0
2 comments

https://youtrack.jetbrains.com/issue/WEB-55423 is fixed in the first minor update for v2022.1, WebStorm 2022.1.1. In the meantime, I you can try the following workaround: select a path to the npm installation folder (C:\Program Files\nodejs\node_modules\npm, for example) instead of a path to npm.cmd in the Package manager field in Settings | Languages & Frameworks | Node.js

0

Thak you for quick reply.

Good news, it's already fixed and also workaround worked - I chose this:

EDIT: Unfortunatelly it worked once. Next time it froze again :-\

0

Please sign in to leave a comment.