The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Using npm run to launch local scripts

Using npm run to launch local scripts

2:11
`npm run` allows you to configure scripts inside of your `package.json` file which can access locally installed node packages. If you're comfortable with this technique, you can also grunt, gulp, or other build tools by customizing your scripts and saving them inside of your `package.json` file. With this approach, when a developer starts a new project with your `package.json`, they can simply run `npm install` then `npm run yourscript` without having to install any node packages globally.
Watch this lesson now
Avatar
egghead.io

npm run allows you to configure scripts inside of your package.json file which can access locally installed node packages. If you're comfortable with this technique, you can also grunt, gulp, or other build tools by customizing your scripts and saving them inside of your package.json file. With this approach, when a developer starts a new project with your package.json, they can simply run npm install then npm run yourscript without having to install any node packages globally.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?