mirror of
https://github.com/anthropics/claude-code.git
synced 2026-08-13 10:22:25 -06:00
Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 885ff0ab71 | |||
| 641f7272db | |||
| 42bca11ef0 | |||
| a3da4902a1 | |||
| 72f16273f9 | |||
| f0f77d9f9d | |||
| bcbf1fe358 | |||
| 91c8d1c7dd | |||
| ba8820fde8 | |||
| 7254f5b735 | |||
| 19571f7a59 | |||
| 8828265deb | |||
| 0cc28dba44 | |||
| 1fc1f3559d | |||
| ebc4a113bc | |||
| c19ab34af3 |
@@ -42,9 +42,10 @@ RUN mkdir -p /workspace /home/node/.claude && \
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
RUN wget https://github.com/dandavison/delta/releases/download/0.18.2/git-delta_0.18.2_arm64.deb && \
|
||||
sudo dpkg -i git-delta_0.18.2_arm64.deb && \
|
||||
rm git-delta_0.18.2_arm64.deb
|
||||
RUN ARCH=$(dpkg --print-architecture) && \
|
||||
wget "https://github.com/dandavison/delta/releases/download/0.18.2/git-delta_0.18.2_${ARCH}.deb" && \
|
||||
sudo dpkg -i "git-delta_0.18.2_${ARCH}.deb" && \
|
||||
rm "git-delta_0.18.2_${ARCH}.deb"
|
||||
|
||||
# Set up non-root user
|
||||
USER node
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
* text=auto eol=lf
|
||||
*.sh text eol=lf
|
||||
@@ -1,6 +1,6 @@
|
||||
# Claude Code (Research Preview)
|
||||
|
||||
 [![npm]](https://www.npmjs.com/package/json-schema-to-typescript)
|
||||
 [![npm]](https://www.npmjs.com/package/@anthropic-ai/claude-code)
|
||||
|
||||
[npm]: https://img.shields.io/npm/v/@anthropic-ai/claude-code.svg?style=flat-square
|
||||
|
||||
@@ -17,12 +17,21 @@ Some of its key capabilities include:
|
||||
|
||||
## Get started
|
||||
|
||||
1. Run the following command in your terminal: <br />
|
||||
```sh
|
||||
npm install -g @anthropic-ai/claude-code
|
||||
```
|
||||
2. Navigate to your project directory and run <code>claude</code>
|
||||
3. Complete the one-time OAuth process with your Anthropic Console account.
|
||||
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.
|
||||
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).
|
||||
|
||||
*Important* We recommend installing this package as a non-privileged user, not as an administrative user like `root`.
|
||||
Installing as a non-privileged user helps maintain your system's security and stability.
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user