Node.js

Here are the list of other npm flags that you might need:

-u or --update: Updates the packages installed in you current working directory

-g or --global: Installs the package globally rather than in your local working directory.

-v or --version: Displays the version of npm.

-h or --help: Displays help information for the npm command.

-l or --long: Shows extended information for the installed packages.

-j or --json: Outputs the npm registry data in json format.

-S or --save: Saves the package as a dependency in your package.json file. As of npm version 5, you might not need this anymore as packages will be saved by default into the package.json file

-D or --save-dev: Saves the package as a dev-dependency in the package.json file.

-O or --save-optional: Saves the package as an optional dependency in the package.json file.

-E or --save-exact: Saves the package at the exact version specified in the package.json file.

-P or --save-prod: Saves the package as a production dependency in the package.json file.

-B or --save-bundle: Saves the package as a bundled dependency in the package.json file.

Возможно больше описано здесь (но мне не понравилось описание).


11.09.2021 07:08

Комментарии

Комментариев пока нет.


Copyrights © 2007 - 2026 YaPro.Ru