Results: 1578
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
Shows all packages without their dependencies (only top level)
npm list --depth 0
Shows all packages with only their dependencies (one level deep)
npm list --depth 1
by Valeri Tandilashvili
5 years ago
0
NPM
NPM Crash Course
0
Shows all packages with their dependencies
npm list
by Valeri Tandilashvili
5 years ago
0
NPM
NPM Crash Course
0
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
by Valeri Tandilashvili
5 years ago
0
NPM
NPM Crash Course
0
npm root
Shows the current app folder location
npm root
by Valeri Tandilashvili
5 years ago
0
NPM
0
npm uninstall -g
Removes the package globally
npm uninstall nodemon -g  /  npm uninstall -g nodemon
by Valeri Tandilashvili
5 years ago
0
NPM
0
Installs the package globally
npm install nodemon -g  /  npm install -g nodemon
by Valeri Tandilashvili
5 years ago
0
NPM
NPM Crash Course
0
Only
major
version will stick to
1
but
minor
and
patch
will be the latest versions
"dependencies": {
    "moment": "^1.6.2"
}
Only updates
patch
but
major
and
minor
will be the specified versions
"dependencies": {
    "moment": "~1.6.2"
}
Exactly the specified version
1.6.2
will be installed
"dependencies": {
    "moment": "1.6.2"
}
The latest version of the package will be installed
"dependencies": {
    "moment": "*"
}
by Valeri Tandilashvili
5 years ago
0
NPM
NPM Crash Course
0
Updates the package to the current
minor
and
patch
versions but do not update to the current
major
version
npm update moment
Before update
""dependencies": {
    "moment": "^1.6.2"
}
After update
"dependencies": {
    "moment": "^1.7.2"
}
The package updated to 1.7.2 even though the current
major
version is
2
by Valeri Tandilashvili
5 years ago
0
NPM
NPM Crash Course
0
Installs exactly the specified version of the module
npm install moment@2.25.2
Installs the specified module with the latest
patch
npm install moment@2.25
Installs the specified module with the latest
minor
and
patch
versions
npm install moment@1
Installs the latest version of the module (with latest
major
,
minor
and
patch
versions)
npm install moment
by Valeri Tandilashvili
5 years ago
0
NPM
NPM Crash Course
0
Removes
gulp-sass
module
npm uninstall gulp-sass
npm un gulp-sass
npm remove gulp-sass
npm rm gulp-sass
All the above commands do the same thing (uninstalling the module)
by Valeri Tandilashvili
5 years ago
0
NPM
NPM Crash Course
0
Results: 1578