Search code examples
angularjswebstorm

How do I start an Angular JS app in WebStorm?


Usually I just type "npm start" to run an Angular JS app for testing. How do I set up a run configuration in WebStorm to do this? I don't see a way to run npm, or enter the "npm start" command from within the run configuration dialog. (Win 7 / Webstorm 9).


Solution

  • you can use Node.js Run configuration for this:

    Working dir: /path/to/your/package.json
    JavaScript file: /path/to/global/node_modules/npm/bin/npm-cli.js
    Application parameters: run start