The first step in the process is to install "Node.JS". Before installing, check to see if you have it installed.
node -v
v0.10.35
If it is not already installed, use this link to install the recommended version.
Next, you have to install NPM or "Node Package Manager"
npm -v
If it is not already installed, simply enter the following command into Windows PowerShell
npm install -g npm
Start by creating a project directory somewhere you can find it later and naming it something like "ThreeJS-Project"
Next, we will be installing VITE as the project base for our ThreeJS.
cd Documents\GitHub\ThreeJS-Project
Once you are in your directory, enter the following command.
npm init vite
It will then initiate four prompts.
After completing these, it will create a new folder within your project directory. If you are having trouble with the arrow keys not working, use Windows PowerShell or Windows Terminal.
Lastly, we need to do the follow up prompts suggested after the project was created.
npm install
Next we will install Three.js itself.
npm install --save three
This will add a few files to your directory. A new folder called node_modules, a package.json, and a package-lock.json.