spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

Merge pull request #205 from emcd/mainBrowse files
fix: README: Encourage users to install package as a non-administrative user for the sake of system security and stability.
Sid Bidasaria authored on Feb 28, 2025 · GitHub committed on Feb 28, 2025 parents 1a4e0f4 + 1c6ab88 · commit e91c77304d12
1 changed file+15 -6compared with 1a4e0f4
MREADME.md
MREADME.md+15 -6
@@ -17,13 +17,22 @@
1717
1818 ## Get started
1919
20-1. Run the following command in your terminal: <br />
21- ```sh
22- npm install -g @anthropic-ai/claude-code
23- ```
24-2. Navigate to your project directory and run <code>claude</code>
25-3. Complete the one-time OAuth process with your Anthropic Console account.
20+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.
21+ 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).
2622
23+ *Important* We recommend installing this package as a non-privileged user, not as an administrative user like `root`.
24+ Installing as a non-privileged user helps maintain your system's security and stability.
25+
26+2. Install Claude Code:
27+
28+ ```sh
29+ npm install -g @anthropic-ai/claude-code
30+ ```
31+
32+3. Navigate to your project directory and run <code>claude</code>.
33+
34+4. Complete the one-time OAuth process with your Anthropic Console account.
35+
2736 ### Research Preview
2837
2938 We're launching Claude Code as a beta product in research preview to learn directly from developers about their experiences collaborating with AI agents. Our aim is to learn more about how developers prefer to collaborate with AI tools, which development workflows benefit most from working with the agent, and how we can make the agent experience more intuitive.