Skip to content

Commit

Permalink
Revert "Bug fix for #9219 & #9186"
Browse files Browse the repository at this point in the history
This reverts commit a96eb87.
  • Loading branch information
kartykp committed Nov 15, 2024
1 parent a96eb87 commit 5c9401d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 7 additions & 7 deletions content/cli/v10/commands/npm-adduser.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ redirect_from:
- /commands/npm-adduser
---

## Synopsis
### Synopsis

```bash
npm adduser
Expand All @@ -45,22 +45,22 @@ alias: add-user

Note: This command is unaware of workspaces.

## Description
### Description

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)).

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

## Configuration
### Configuration

### `registry`
#### `registry`

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

The base URL of the npm registry.

### `scope`
#### `scope`

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

### `auth-type`
#### `auth-type`

- Default: "web"
- Type: "legacy" or "web"

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

## See Also
### See Also

- [npm registry](/cli/v10/using-npm/registry)
- [npm config](/cli/v10/commands/npm-config)
Expand Down
2 changes: 0 additions & 2 deletions src/mdx/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const MonoText = props => <Text sx={{fontFamily: 'mono', fontSize: 1}} {...props

const CodeBlock = ({children, code, className, style}) => (
<Box
role="presentation"
sx={{
// Make <pre> adjust to the width of the container
// https://stackoverflow.com/a/14406386
Expand All @@ -65,7 +64,6 @@ const CodeBlock = ({children, code, className, style}) => (
}}
>
<Box
role="presentation"
style={style}
sx={{
...(code ? {display: 'flex', justifyContent: 'space-between', flexDirection: 'row-reverse'} : {}),
Expand Down

0 comments on commit 5c9401d

Please sign in to comment.