mirror of
https://github.com/anthropics/claude-code.git
synced 2026-04-25 22:42:41 +00:00
Merge pull request #205 from emcd/main
fix: README: Encourage users to install package as a non-administrative user for the sake of system security and stability.
This commit is contained in:
21
README.md
21
README.md
@@ -17,12 +17,21 @@ Some of its key capabilities include:
|
|||||||
|
|
||||||
## Get started
|
## Get started
|
||||||
|
|
||||||
1. Run the following command in your terminal: <br />
|
1. If you are new to Node.js and Node Package Manager (`npm`), then it is recommended that you configure an NPM prefix for your user.
|
||||||
```sh
|
Instructions on how to do this can be found [here](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview#recommended-create-a-new-user-writable-npm-prefix).
|
||||||
npm install -g @anthropic-ai/claude-code
|
|
||||||
```
|
*Important* We recommend installing this package as a non-privileged user, not as an administrative user like `root`.
|
||||||
2. Navigate to your project directory and run <code>claude</code>
|
Installing as a non-privileged user helps maintain your system's security and stability.
|
||||||
3. Complete the one-time OAuth process with your Anthropic Console account.
|
|
||||||
|
2. Install Claude Code:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install -g @anthropic-ai/claude-code
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Navigate to your project directory and run <code>claude</code>.
|
||||||
|
|
||||||
|
4. Complete the one-time OAuth process with your Anthropic Console account.
|
||||||
|
|
||||||
### Research Preview
|
### Research Preview
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user