When installing NodeJS on Windows, there are two shortcuts:

- Node.js = This is a hidden shell for testing and executing JavaScript code. This is the same as if you typed
node from the command line (assuming node.exe is on the way). This is great for simple tests (and I often use it as a calculator). - Node.js = this is the standard command line in which the path was configured to include
node.exe (the NodeJS executable) along with npm , Node Package Manager. However, during the default installation, NodeJS directories are added to the system path, so node must be accessible from any command line.
So, using the command line (# 2), you can use it to run scripts, for example:
node app.js
Where app.js is the NodeJS code you wrote.
As I mentioned, node and npm are usually in the system path, so I do not use two shortcuts. Instead, I just run a new command line:
- Win + r
cmd Enternode enter
source share