When you encounter this problem, record it and see that the prompt should be an environment variable. Run the following command to get the Nodejs module installation path:
npm prefix -g
Just add the output global installation path to the Path entry of the environment variable.
The above article solves the problem of not being able to find the command after installing the module globally by Nodejs is all the content I share with you. I hope you can give you a reference and I hope you can support me more.