So usually to start my js files I right click and "Git Bash Here" then I node index.js
.
Now I'm wondering if that can be done through a shortcut instead.
I've looked around everywhere and no methods worked for me but I have managed "C:\Program Files\Git\git-bash.exe" -c
and it stays open.
Any help is appreciated.
Since you already have Node.js installed, you can use the existing exe.
You can use node.exe instead of Git Bash for creating a shortcut.
Here are the steps I used (windows 10):
C:/Program Files/nodejs
.Create shortcut
for node.exe
.Properties
Target
section. Before it was "C:\Program Files\nodejs\node.exe"
, but I changed it to "C:\Program Files\nodejs\node.exe" index.js
. Also change the Start In
to be the working directory you want.