From the course: Learning Static Site Building with Jekyll

Unlock the full course today

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

Set up Node and npm

Set up Node and npm

From the course: Learning Static Site Building with Jekyll

Start my 1-month free trial

Set up Node and npm

- [Instructor] We'll write the code that deploys the site files in JavaScript and run it with Node.js. To follow along, you'll need to have Node installed in your machine. You can check that with node -v. If you don't have Node installed, go to the Node download page on nodejs.org and follow their instructions. Installing Node also installs NPM, the Node Package Management tool. We'll use NPM to download some packages the deployment script needs and later we'll also use NPM to run the script itself. I'll start with npm init -y which will start a new NPM project in this folder. And then I need to do npm install --save and install a few packages we need for this script. I need a package called glob. I need a package called upath and also one called ssh2-sftp-client. NPM downloaded these packages into a folder called node_modules. I need to add that folder to my git ignore file. I'll do that in here in VS Code. I'll say node_modules. Now it's ignored. Now I'll open up package.json which…

Contents