New to Node, trying to follow a basic tutorial to launch a web browser. I'm using WebStorm as my IDE with node v22.3.0 and npm v10.8.1 and both commands are recognized by the terminal. The scripts portion of my package.json looks like:
"scripts": {
"launch": "node test/launch_browser.js",
},
But when I run npm run-script launch nothing happens. However, if I run the individual file it works and WebStorm uses C:\Program Files\nodejs\node.exe launch_browser.js. What is the difference? Why is it not working with npm?