Skip to content

Tim-W-James/Node-Reference-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install node

  • Install: https://nodejs.org/en/download/package-manager/
  • Powershell - Node Version Switcher: nvs
    • Install: choco install nvs
    • Install a Node version: nvs add latest
  • Bash - Node Version Manager: vnm
    • Install: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
    • Install a Node version: nvm install <version>
    • Use a version: nvm use <version>

Usage

  • Initialize package.json: npm init
  • Install dependencies (from existing package.json): npm install
  • Install a package in project (package.json): npm i <package>
  • Install a package globally: npm i -g <package>
  • repl (read-eval-print-loop): node
  • Run JavaScript in the terminal: node <filename>.js or node . (automatically finds index.js)

About

Some of my reference code for Node.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published