Results: 1580
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
Shows globally installed modules
npm list --global --depth 0
by Valeri Tandilashvili
4 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
4 years ago
0
NPM
0
Updates npm to the latest version
npm install npm@latest -g
by Valeri Tandilashvili
4 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
4 years ago
0
NPM
npm Tutorial for Beginners
0
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
4 years ago
0
NPM
npm Tutorial for Beginners
0
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"
by Valeri Tandilashvili
4 years ago
0
NPM
0
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
by Valeri Tandilashvili
4 years ago
0
NPM
packages
0
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
by Valeri Tandilashvili
4 years ago
0
NPM
packages
0
npm search
Searches packages and shows the result with details that include the word
gallery
npm search imagegallery
by Valeri Tandilashvili
4 years ago
0
NPM
packages
0
Automated command to generate
composer.json
composer init
by Valeri Tandilashvili
4 years ago
0
Composer
Composer official doc
0
Results: 1580