Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add npm add as alias to npm install #160

Merged
merged 1 commit into from
Feb 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/cli/npm-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ npm-install(1) -- Install a package
npm install <tarball url>
npm install <folder>

alias: npm i
aliases: npm i, npm add
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof, i didn't realize this was an alias. it seems like add should force --save, and it doesn't :-/

Copy link
Contributor Author

@ahasall ahasall Feb 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just learnt it. I was trying to do npm adduser but I did npm add user 😀.
Just tried ng add, and it's seems to be forcing --save.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you have save=false in your .npmrc, does it still force --save?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, if I have save=false in my .npmrc (whether it's local to my project or global), it doesn't force --save.

common options: [-P|--save-prod|-D|--save-dev|-O|--save-optional] [-E|--save-exact] [-B|--save-bundle] [--no-save] [--dry-run]

## DESCRIPTION
Expand Down