Results: 44
npm install package@latest
Installs the latest version of the package
npm install package  /  npm install package@latest
npm search
Searches packages and shows the result with details that include the word
gallery
npm search imagegallery
The package should be installed globally (so that other app can use it)
npm install -g live-server
After installing, the package should be started by running the command in console
live-server
Installing the package
npm install -g browserify
If our app main JS file is app.js, then running the command will create one
bundle.js
file
browserify app.js > bundle.js
live-server
did not work
browserify
did not work The problem solved after running this command in
Windows PowerShell
(open as an administrator)
Set-ExecutionPolicy -Scope "CurrentUser" -ExecutionPolicy "Unrestricted"
Updates npm to the latest version
npm install npm@latest -g
Search in NPM documentation with keyword
update
Opens up a web page with detailed documentation about the command
Shows all packages with their dependencies
npm list
Shows the location of globally installed packages (location where our global modules go)
npm root -g
The result (on this computer) is
C:\Users\Admin\AppData\Roaming\npm\node_modules
Results: 44