Skip to main content

Node.js



Commands

Search:
Designation 🔼
command
parameter
description
console functionadd = function (a, b) {return a+b;} add(4,5)
file executenode .\server.js
initialize projectnpm init-y skip author info
install dependenciesnpm i [packageName]-ginstall global
list installed packagesnpm list -g --depth 0
list outdated packagesnpm outdated -g --depth=0
remove node_modules directorynpm rm -rf node_modules
restart packagenpm restart
run scriptnpm run [scriptName]
start on portnpm start -- --port 8000
start packagenpm start
uninstall packagenpm uninstall [packageName]
update packagenpm update
update, install npmnpm i npm@latest - g
version check nodenode -v
version check npmnpm -v
vulnerabilities checknpm audit
vulnerabilities fix npm audit -fix
vulnerabilities override "overrides": { "glob-parent": "6.0.2", "got": "12.6.0", "trim": "1.0.1" }package.json
vulnerabilities updatenpm update

Packages

Search:
Name 🔼
command
Category
docusaurusnpm i docusaurusdocusaurus
react-tablenpm i react-tablereact