Only require unsafe-perm if you are root
Remove it from the docs, as the error message should be sufficient and it seems weird to recommend unsafe-perm by default.
This commit is contained in:
@ -18,7 +18,7 @@ nvm install 18
|
||||
nvm use 18
|
||||
```
|
||||
|
||||
8. Install code-server globally on device with: `npm install --global code-server --unsafe-perm`
|
||||
8. Install code-server globally on device with: `npm install --global code-server`
|
||||
9. Run code-server with `code-server`
|
||||
10. Access on localhost:8080 in your browser
|
||||
|
||||
|
@ -92,7 +92,7 @@ Installing code-server requires all of the [prerequisites for VS Code developmen
|
||||
Next, install code-server with:
|
||||
|
||||
```bash
|
||||
npm install --global code-server --unsafe-perm
|
||||
npm install --global code-server
|
||||
code-server
|
||||
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
|
||||
```
|
||||
@ -112,7 +112,7 @@ For help and additional troubleshooting, see [#1397](https://github.com/coder/co
|
||||
After adding the dependencies for your OS, install the code-server package globally:
|
||||
|
||||
```bash
|
||||
npm install --global code-server --unsafe-perm
|
||||
npm install --global code-server
|
||||
code-server
|
||||
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
|
||||
```
|
||||
@ -144,8 +144,8 @@ To debug installation issues, install with `npm`:
|
||||
|
||||
```shell
|
||||
# Uninstall
|
||||
npm uninstall --global --unsafe-perm code-server > /dev/null 2>&1
|
||||
npm uninstall --global code-server > /dev/null 2>&1
|
||||
|
||||
# Install with logging
|
||||
npm install --loglevel verbose --global --unsafe-perm code-server
|
||||
npm install --loglevel verbose --global code-server
|
||||
```
|
||||
|
@ -70,7 +70,7 @@ code-server --auth none
|
||||
7. If already installed then use the following command for upgradation.
|
||||
|
||||
```
|
||||
npm update --global code-server --unsafe-perm
|
||||
npm update --global code-server
|
||||
```
|
||||
|
||||
## Upgrade
|
||||
|
Reference in New Issue
Block a user