Can not create frontend module when using NVM

Hi Team:

I use NVM to manage node versions. When i create Frontend module by Jmix studio, the following error occurs:

Error running front generator
bash: node: command not found

My OS : MacOS Big Sur 11.6

The Gradle tasks succeeds, but the event log in Intellij reports this error.
When the error occurs I am unable to create frontend components.

It’s also happen with my environment.
My OS Ubuntu 24.04
For a solution, I deactivate NVM and uninstall node
And reinstall Node using APT-GET comman