npm

Watch User Created Playlist (6)

This playlist is user created.

pro-course-rss-logo

PRO RSS Feed

npm init

P

npm install

P

CLI node modules

P

Configuring npm package.json scripts

P

Using npm run to launch local scripts

P

Configuring npm and creating a package.json

node tutorial about npm init

npm init

1:29 node PRO

npm init provides an interactive step-by-step interface for creating a package.json

node tutorial about npm install

npm install

2:26 node PRO

npm install provides a convenient way to manage your node.js dependencies.

node tutorial about CLI node modules

CLI node modules

2:07 node PRO

Many node modules provide a command line interface. In this lesson, we'll look at how to use them, as well as how to avoid npm install -g for "global" tools.

node tutorial about Configuring npm package.json scripts

Configuring npm package.json scripts

3:04 node PRO

With a node package manager's (npm) package.json script property, you can preconfigure common tasks like running unit tests with npm $SCRIPT_NAME

node tutorial about Using npm run to launch local scripts

Using npm run to launch local scripts

2:11 node PRO

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.

js tutorial about Configuring npm and creating a package.json

Configuring npm and creating a package.json

5:01 js

In this lesson, you'll learn how to set up your machine to publish to npm so people can install your library. You'll configure some helpful defaults and use those to create a package.json file for your project using npm init.

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