Conversation
darcyclarke
left a comment
There was a problem hiding this comment.
Can we determine whether or not removing the line breaks will change the output we generate for the man (ie. manual) pages?
| `devDependencies`. To install all modules listed in both `dependencies` | ||
| and `devDependencies` when `NODE_ENV` environment variable is set to `production`, | ||
| you can use `--production=false`. | ||
| and `devDependencies` when `NODE_ENV` environment variable is set to `production`, you can use `--production=false`. |
There was a problem hiding this comment.
@claudiahdz I think the reason there were line breaks here was to keep the text column count short in a shell output... not sure if removing them will effect that negatively so that command line docs would span the length of the terminal 🤔
|
|
||
| * `npm install <alias>@npm:<name>`: | ||
|
|
||
| Install a package under a custom alias. Allows multiple versions of a same-name package side-by-side, more convenient import names for packages with otherwise long ones and using git forks replacements or forked npm packages as replacements. Aliasing works only on your project and does not rename packages in transitive dependencies. Aliases should follow the naming conventions stated in [`validate-npm-package-name`](https://www.npmjs.com/package/validate-npm-package-name#naming-rules). |
4613d60 to
41feb13
Compare
|
|
||
| npm install sax | ||
|
|
||
| * `npm install <alias>@npm:<name>`: |
There was a problem hiding this comment.
with --save, would this install using the alias notation into package.json?
There was a problem hiding this comment.
Yes, for example doing npm install jquery1@npm:jquery@1 will look like this on package.json:
"dependencies": {
"jquery1": "npm:jquery@^1.12.4"
}
You can also use the alias for npm related tasks, ex: npm uninstall jquery1.
There was a problem hiding this comment.
Great! Should the docs be explicit about that?
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
7ba97b0 to
7b17efb
Compare
7b17efb to
90805b9
Compare
darcyclarke
left a comment
There was a problem hiding this comment.
LGTM as a first pass now ✅👍
Adds docs for package aliases.