From the course: SharePoint Framework for Developers: 1 Understanding the Toolchain

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create a new node-based project

Create a new node-based project

From the course: SharePoint Framework for Developers: 1 Understanding the Toolchain

Start my 1-month free trial

Create a new node-based project

- [Instructor] With node.js, npm, and optionally, yarn installed on your machine, let's go ahead and create a simple node-based project and understand some basic concepts of how node-based projects work. The first thing I'm going to do is create a folder called newproj for new project. Let's go into this folder and set this up to be a node-based project. Well, doing so is really simple, you just hit npm init. It'll ask you a few questions. I'll just go with the default answers. And at the end of this, I'll say yes, because this is going to write out a package.json file. Remember that package.json is the introduction to my project. Let's go ahead and open this is VS Code. Now, the package.json file has a well-defined format. And one of the important nodes is dependencies. So you can find help for all of these things in VS Code right here. So dependencies are specified with a simple hash of a package, et cetera, et cetera. Basically, these are other node modules that your project…

Contents