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.