Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[web] Add ubuntu instructions to the getting started docs

Manav Rathi23138800e0f0
diff --git a/web/docs/new.md b/web/docs/new.md
index 4500617b5f..65d7b98794 100644
--- a/web/docs/new.md
+++ b/web/docs/new.md
@@ -1,26 +1,35 @@
# Welcome!
-If you're new to this sort of stuff or coming back to it after mobile/backend
+If you're new to web stuff or coming back to it after mobile/backend
development, here is a recommended workflow:
-1. Install VS Code.
+1. Install **VS Code**.
-2. Install the Prettier and ESLint extensions.
+2. Install the **Prettier** and **ESLint** extensions.
3. Enable the VS Code setting to format on save.
-4. Install node on your machine `brew install node@20`. Our package manager,
- `yarn` comes with it.
+4. Install **node** on your machine. There are myriad ways to do this, here are
+ some examples:
-That's it. Enjoy coding!
+ * macOS: `brew install node@20`
+
+ * Ubuntu: `sudo apt install nodejs npm && sudo npm i -g corepack`
+
+5. Enable corepack. This allows us to use the correct version of our package
+ manager (**Yarn**):
-## Yarn
+ ```sh
-Note that we use Yarn classic
+ corepack enable
+ ```
-```
-$ yarn --version
-1.22.21
-```
+ If now you run `yarn --version` in the web directory, you should be seeing a
+ 1.22.xx version, otherwise your `yarn install` will fail.
-You should be seeing a 1.xx.xx version, otherwise your `yarn install` will fail.
+ ```sh
+ $ yarn --version
+ 1.22.21
+ ```
+
+That's it. Enjoy coding!