

Install Node.js on WSL 2: This includes a version manager, package manager, Visual Studio Code, and the Remote Development extension.You can check this by opening PowerShell and entering: wsl -l -v Install Windows Subsystem for Linux (WSL), including a Linux distribution (like Ubuntu) and make sure it is running in WSL 2 mode.Install the latest version of Windows 10 (Version 1903+, Build 18362+) or Windows 11.This guide assumes that you've already completed the steps to set up your Node.js development environment, including: To learn more about React and other JavaScript frameworks based on React, see the React overview page. Gatsby also dictates how to handle data in your app (with GraphQL), whereas Next.js leaves that decision up to you. Next.js generates HTML on runtime (each time a new request comes in), requiring a server to run. A static site generator generates static HTML on build time. Gatsby.js is a static site generator framework based on React.js, as opposed to being server-rendered like Next.js. Note that the path is cancelled after each call.A guide to help you install the Gatsby.js web framework and get up and running on Windows. Then both the Node and NPM commands can be used directly Use the NodeJS directory as path every time in CMD SET PATH=C:\Users\xxxx\Desktop\NodeJS %PATH% Copy the code Go directly to their website: The environment variable For more information on using npm visit /.Īs the final step you can add node's folder path c:\nodejs to the path environment variable so that you don't have to specify full path when running node.exe and npm at command prompt. Once setup is done, it can be used to install/uninstall packages locally or globally. Copy npm and npm.cmd files from c:\nodejs\node_modules\npm\bin to c:\nodejs folder.Unzip the downloaded zip file in c:\nodejs\node_modules\npm folder.Create folders c:\nodejs\node_modules and c:\nodejs\node_modules\npm.Download the latest npm release from GitHub ( ).The point is that no administrator privileges are required!!!!Ĭurrent version: Node -v v6.9.4 NPM -v 4.1.1 Copy the code NodeJS Installationĭownload the latest Node.exe from the official website NPM Installation Green environment, Window8 based, do not require administrator rights

The blog had been using Jekyll, and suddenly wanted to play with NodeJS and Hexo, so I tried to build it The article was originally published by SZHSHP's Third Institute for Border Studies Development background
