Use nvs version manager to install and switch between different versions of Node js.
nvs is cross-platform and can be used on Windows, macOS, and Unix-like systems.
use chocolatey to install it.
See how to install choco using Windows Admin Power Shell on https://chocolatey.org/install
At Windows Admin Power Shell prompt: choco install nvs
Go to the GitHub
project and copy HTTPS
link.
On your local machine at the comand prompt, go to the directory where you want this project to be under and type git clone
followed by the HTTPS
link.
For example:
git clone https://github.com/byteball/bot-example.git
This will create a new directory under your projects directory.
Rename the new directory, e.g. MyNewProject
.
At command prompt go to the new directory and remove git
folder.
At command prompt run
npm install
command to install required librarires.If your project uses client / server structure run above command in those directories instead.
Login to GitHub
and create a new repository.
Copy the URL.
At command prompt, go to your local project directory and create an empty git repository and connect it to the github:
git init git remote add origin REMOTE_URL
Than, make your 1st commit:
git add . git commit -m "1st commit" git push origin master
If you get fatal: not a git repository (or any of the parent directories): .git
error, type git init
to create an empty git repository in your local directory.