How to let Node command line program directly enter commands to execute in Windows CMD?

  node.js, question

I used a common method on the internet, set the bin field in package.json, and then usenpm link, but withnpm linkAfter that, it is still unavailable and an error will be displayed.No such file or dictionary
Is there any other way to execute the Node command line program by directly entering commands in Windows CMD?
Do you need to configure environment variables and how?

Bash is not supported and needs a bash execution environment, such as git.