Results: 1578
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
Installs package
npm install  /  npm i
Shows current version of
npm
npm --version  / npm -v
Creates
package.json
file with default values
npm init --yes  /  npm init -y
Installs package
moment
npm install moment --save  /  npm i moment -S
Installs package
lodash
for
dev environment
npm install lodash --save-dev  /  npm i moment -D
Installs package
live-server
globally so that other apps can use it
npm install --global live-server  /  npm i -g live-server
Other shortcuts - https://docs.npmjs.com/misc/config
by Valeri Tandilashvili
5 years ago
0
NPM
npm Tutorial for Beginners
0
Deletes all packages from
node_modules
that are extraneous packages (that are not listed in
package.json
)
npm prune
Before running the above command,
npm list --depth 0
showed several packages as extraneous. Extraneous are packages that are not listed in
dependencies
or
devDependencies
but installed in
node_modules
)
+-- gulp@4.0.2 extraneous
+-- gulp-sass@4.1.0 extraneous
`-- moment@2.27.0
by Valeri Tandilashvili
5 years ago
0
NPM
npm Tutorial for Beginners
0
Updates npm to the latest version
npm install npm@latest -g
by Valeri Tandilashvili
5 years ago
0
NPM
npm Tutorial for Beginners
0
npm install package@latest
Installs the latest version of the package
npm install package  /  npm install package@latest
by Valeri Tandilashvili
5 years ago
0
NPM
0
Shows globally installed modules
npm list --global --depth 0
by Valeri Tandilashvili
5 years ago
0
NPM
npm Tutorial for Beginners
0
Deletes manually set default license (default license will become
ISC
)
npm config delete init-license
Deletes manually set default author name (default author will become empty string)
npm config delete init-author-name
by Valeri Tandilashvili
5 years ago
0
NPM
npm Tutorial for Beginners
0
Search in NPM documentation with keyword
update
by Valeri Tandilashvili
5 years ago
0
NPM
npm Tutorial for Beginners
0
Opens up a web page with detailed documentation about the command
by Valeri Tandilashvili
5 years ago
0
NPM
npm Tutorial for Beginners
0
Shows all the different ways we can use
npm install
command (in console)
npm install -h
Alternative to the above command
npm install --help
by Valeri Tandilashvili
5 years ago
0
NPM
npm Tutorial for Beginners
0
We can run scripts that are listed in
scripts
key, inside
package.json
file. If the content is the following
"scripts": {
    "start": "node app.js",
    "server": "live-server"
}
Then we can run
npm run start
and npm will run
node app.js
We can also run
npm run server
and it will run
live-server
by Valeri Tandilashvili
5 years ago
0
NPM
NPM Crash Course
0
Results: 1578