Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Using npm as a Task Runner!
You have completed Using npm as a Task Runner!
Preview
npm has a number of built in tasks. One example is test. In this video we'll take a look at how to set up npm to run our tests.
Links
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You're often encouraged to
install test frameworks and
0:00
build systems globally with the -g flag.
0:01
But that can be a little overkill if
you're working on different projects with
0:05
potentially different versions.
0:08
Let's install our depth dependences
now by running npm install.
0:11
The install command installs all npm
modules that are part of your project.
0:23
In other words, third party modules
that your project depends on.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up