npm
npm is a package manager for the JavaScript programming language. It consists of a command line client, and an online database of public and paid-for private packages, called the npm registry.

Perintah Umum
Buat app baru
Nodejs
Nextjs
Install dependencies
Jalankan perintah berikut dalam folder app yang sedang aktif.
Cek outdated package
Outdated global
Outdated local
Update package
Update global
Update local
Build package
Jalankan perintah berikut dalam folder project.
Semantic Versioning
Publish npm packages
Troubleshooting
Cara mudah update npm di Windows lewat PowerShell
npm di Windows lewat PowerShellBuka PowerShell dengan opsi Run as Administrator
Ketik
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -ForceInstall package
npm-windows-upgradedengan command,Jika ingin langsung mengupgrade, jalankan perintah ini.
Referensi:
Last updated
Was this helpful?