Skip to content

Commit 5c9401d

Browse files
committed
Revert "Bug fix for #9219 & #9186"
This reverts commit a96eb87.
1 parent a96eb87 commit 5c9401d

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

content/cli/v10/commands/npm-adduser.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ redirect_from:
3535
- /commands/npm-adduser
3636
---
3737

38-
## Synopsis
38+
### Synopsis
3939

4040
```bash
4141
npm adduser
@@ -45,22 +45,22 @@ alias: add-user
4545

4646
Note: This command is unaware of workspaces.
4747

48-
## Description
48+
### Description
4949

5050
Create a new user in the specified registry, and save the credentials to the `.npmrc` file. If no registry is specified, the default registry will be used (see [`registry`](/cli/v10/using-npm/registry)).
5151

5252
When using `legacy` for your `auth-type`, the username, password, and email are read in from prompts.
5353

54-
## Configuration
54+
### Configuration
5555

56-
### `registry`
56+
#### `registry`
5757

5858
- Default: "https://registry.npmjs.org/"
5959
- Type: URL
6060

6161
The base URL of the npm registry.
6262

63-
### `scope`
63+
#### `scope`
6464

6565
- Default: the scope of the current project, if any, or ""
6666
- Type: String
@@ -87,14 +87,14 @@ This will also cause `npm init` to create a scoped package.
8787
npm init --scope=@foo --yes
8888
```
8989

90-
### `auth-type`
90+
#### `auth-type`
9191

9292
- Default: "web"
9393
- Type: "legacy" or "web"
9494

9595
What authentication strategy to use with `login`. Note that if an `otp` config is given, this value will always be set to `legacy`.
9696

97-
## See Also
97+
### See Also
9898

9999
- [npm registry](/cli/v10/using-npm/registry)
100100
- [npm config](/cli/v10/commands/npm-config)

src/mdx/code.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ const MonoText = props => <Text sx={{fontFamily: 'mono', fontSize: 1}} {...props
5454

5555
const CodeBlock = ({children, code, className, style}) => (
5656
<Box
57-
role="presentation"
5857
sx={{
5958
// Make <pre> adjust to the width of the container
6059
// https://stackoverflow.com/a/14406386
@@ -65,7 +64,6 @@ const CodeBlock = ({children, code, className, style}) => (
6564
}}
6665
>
6766
<Box
68-
role="presentation"
6967
style={style}
7068
sx={{
7169
...(code ? {display: 'flex', justifyContent: 'space-between', flexDirection: 'row-reverse'} : {}),

0 commit comments

Comments
 (0)