From the course: Building Your First CLI App in Node
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Install the Node dependencies
From the course: Building Your First CLI App in Node
Install the Node dependencies
- Now that we have a project ready, we can install the dependencies. Hopefully, we can chain these together. We don't have to npm all of them individually. We can just say, npm install once and then write every package or module we want to add. Like so. These are all of the dependencies you'll need for our project. We're installing all of them now, but won't make use of many of them until a bit later. This is just to ensure that we have all the foundations we need for every step of the project. At the end of our chain of desired modules, we just say touch, save. When you touch a file you're putting fresh fingerprints on it, updating it's last modified date, or creating it if it didn't exist yet. Then once we have this we can just hit enter to begin installing our dependencies. Once your dependencies are installed, you'll see a new folder in your project called node modules. This is where node modules for our project live. You'll also see a new package lock json file that's been…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.