From the course: Learning npm: A Package Manager
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Initializing a package.json file
From the course: Learning npm: A Package Manager
Initializing a package.json file
- [Instructor] As mentioned before, the package .json file is the map for building your project and setting your dependencies. But first, let's take a look at what you need to follow along. All you need is a good editor with some terminal capabilities, and vscode is perfect for this. In my case, I'm going to use code space which is an online version of vscode. So I'm back where the repo is here and what I'm going to do is click on code and use one of the code spaces. I already used this a bit so I'm going to use this one here. You can create a new one by pressing plus. Once your area is set up, you're ready to go. So this is very much like vscode. So if you want to use vscode it's the same thing, or use your favorite editor. So what we're going to do now is go inside of the terminal and we're going to initialize the project so we can get a package .json file. So let's go ahead and do that. And I'm going to do npm…