You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -295,14 +294,13 @@ You can install code-server using the [Helm package manager](https://coder.com/d
295
294
296
295
## Windows
297
296
298
-
We currently [do not publish Windows releases](https://github.com/coder/code-server/issues/1397). We recommend installing code-server onto Windows with [`yarn` or `npm`](#yarn-npm).
297
+
We currently [do not publish Windows releases](https://github.com/coder/code-server/issues/1397). We recommend installing code-server onto Windows with [`npm`](#npm).
299
298
300
299
> Note: You will also need to [build coder/cloud-agent manually](https://github.com/coder/cloud-agent/issues/17) if you would like to use `code-server --link` on Windows.
301
300
302
301
## Raspberry Pi
303
302
304
-
We recommend installing code-server onto Raspberry Pi with [`yarn` or
305
-
`npm`](#yarn-npm).
303
+
We recommend installing code-server onto Raspberry Pi with [`npm`](#npm).
306
304
307
305
If you see an error related to `node-gyp` during installation, See [#5174](https://github.com/coder/code-server/issues/5174) for more information.
@@ -85,8 +90,7 @@ Installing code-server requires all of the [prerequisites for VS Code developmen
85
90
Next, install code-server with:
86
91
87
92
```bash
88
-
yarn global add code-server
89
-
# Or: npm install -g code-server
93
+
npm install --global code-server --unsafe-perm
90
94
code-server
91
95
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
92
96
```
@@ -96,8 +100,7 @@ A `postinstall.sh` script will attempt to run. Select your terminal (e.g., Git b
96
100
If the `code-server` command is not found, you'll need to [add a directory to your PATH](https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/). To find the directory, use the following command:
97
101
98
102
```shell
99
-
yarn global bin
100
-
# Or: npm config get prefix
103
+
npm config get prefix
101
104
```
102
105
103
106
For help and additional troubleshooting, see [#1397](https://github.com/coder/code-server/issues/1397).
@@ -107,8 +110,7 @@ For help and additional troubleshooting, see [#1397](https://github.com/coder/co
107
110
After adding the dependencies for your OS, install the code-server package globally:
108
111
109
112
```bash
110
-
yarn global add code-server
111
-
# Or: npm install -g code-server
113
+
npm install --global code-server --unsafe-perm
112
114
code-server
113
115
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
Copy file name to clipboardExpand all lines: docs/termux.md
+4-9
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
# Termux
4
4
5
5
-[Install](#install)
6
-
-[Yarn Installation](#yarn-installation)
6
+
-[NPM Installation](#npm-installation)
7
7
-[Upgrade](#upgrade)
8
8
-[Known Issues](#known-issues)
9
9
-[Git won't work in `/sdcard`](#git-wont-work-in-sdcard)
@@ -66,7 +66,7 @@ curl -fsSL https://code-server.dev/install.sh | sh
66
66
> Consider using a new user instead of root, read [here](https://www.howtogeek.com/124950/htg-explains-why-you-shouldnt-log-into-your-linux-system-as-root/) why using root is not recommended.\
67
67
> Learn how to add a user [here](#create-a-new-user).
68
68
69
-
## Yarn Installation
69
+
## NPM Installation
70
70
71
71
1. Get [Termux](https://f-droid.org/en/packages/com.termux/) from **F-Droid**.
72
72
@@ -93,19 +93,14 @@ pkg install -y \
93
93
binutils \
94
94
pkg-config \
95
95
python3 \
96
-
yarn \
97
96
nodejs-lts
98
97
npm config set python python3
99
98
node -v
100
99
```
101
100
102
101
you will get node version `v16.15.0`
103
102
104
-
5. Now install code-server
105
-
106
-
```sh
107
-
yarn global add code-server
108
-
```
103
+
5. Now install code-server following our guide on [installing with npm][./npm.md](./npm.md)
109
104
110
105
6. Congratulation code-server is installed on your device using the following command.
111
106
@@ -116,7 +111,7 @@ code-server --auth none
116
111
7. If already installed then use the following command for upgradation.
0 commit comments