Maintaining projects using the npm command


show more Maintaining projects using the npm command provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Node.js Essential Training (2013) show less
please wait ...

Maintaining projects using the npm command

Although it started out as just a packet manager for node, npm is now capable of installing, starting and maintaining your node project. In this video, we'll take a look at some of the more common npm commands. First let's go to the terminal. I'm going to change direct query to the desktop. Type in CD space and then desktop, with a capital D. Now I'm going to install Express as a global module. To do that, type npm install -g and then space express.

So you'll notice that this failed miserably. It's telling us that the access to the file system is not allowed. Now this may have gone off without a hitch on your computer, but on mine I'm going to need special permission to move forward. So to do that, I'm going to preface this command with sudo. . So I'm going to type in sudo npm install, then -g express. Now the express module has been installed as a global module. Now this is something that confused me a little bit when I approached node for the first time.

I was used to...

Maintaining projects using the npm command
Video duration: 6m 16s 3h 17m Intermediate

Viewers:

Maintaining projects using the npm command provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Node.js Essential Training (2013)

Subject:
Developer
Software:
JavaScript Node.js
Author:
please wait ...