title | datePublished | cuid | slug | cover | tags |
---|---|---|---|---|---|
Explaining Packages To A-5Year-Old |
Sun Mar 19 2023 20:22:05 GMT+0000 (Coordinated Universal Time) |
clffugcsv000609lb1opo13xd |
explaining-packages-to-a-5year-old |
npm, package, node, nkde |
Node.js is a popular runtime environment for executing JavaScript code outside of a browser.
npm is the package manager for Node.js, used to install, manage, and share packages of code.
Docsify is a lightweight documentation generator that can turn your markdown files into a beautiful website.
-
Download the Windows Installer from the official Node.js website.
-
Double-click the downloaded file to start the installation wizard and follow the prompts.
-
Open Command Prompt and run the following command to check if Node.js is installed:
node -v
If Node.js is installed, you will see its version number printed to the console.
- Install Node.js using Homebrew by running the following command in Terminal:
brew install node
-
Alternatively, you can download the Linux Binaries from the official Node.js website.
-
Open Terminal and run the following command to check if Node.js is installed:
node -v
- Install Node.js using your distribution's package manager. For example, on Ubuntu, run the following command:
sudo apt-get install nodejs
- Open Terminal and run the following command to check if Node.js is installed:
node -v
npm is installed automatically with Node.js.
To check if npm is installed, open Terminal or Command Prompt and run the following command:
npm -v
- Open Terminal or Command Prompt and run the following command:
npm install -g docsify-cli
-
This command installs Docsify globally on your system, making it available from anywhere in the terminal.
-
To check if Docsify is installed, run the following command:
docsify -v
Congratulations!
You have successfully installed Node.js, npm, and Docsify on your system.
Start a New project:
docsify init your-project
Serve it locally:
docisfy serve your-project
I built this using Docsify.
You can now start to generate your websites.