Skip to content

Commit 1fe7512

Browse files
authored
Update README.md
1 parent 660ec09 commit 1fe7512

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@
77
| ArchLinux | `pacman -S ninja git meson dart-sass` |
88
| Ubuntu | `sudo apt install ninja-build git meson && sudo snap install dart-sass && sudo snap alias dart-sass sass` |
99
| Fedora | `sudo dnf install nodejs ninja-build git meson` and then install sass with `npm install -g sass` |
10-
| Others | Install git, meson, ninja-build, (node.js). Also make sure `sass` is installed from `npm install -g sass` (or `dart-sass` from repo if it exists). |
10+
| Others | Install git, meson, ninja-build, (node.js). Also make sure `dart-sass` is installed from any available source. |
1111

1212
Other distros may have named the above packages differently.
1313

14+
Dart-sass can also be installed from source if you don't want to use `node.js`:
15+
1. Download the release for your architecture: https://github.com/sass/dart-sass/releases
16+
2. Run `tar -xvf dart-sass-<version>-linux-x64.tar.gz` (Replace `<version>` with the version you downloaded, and also `x64` if needed.) This will create a new directory containing the sass executable.
17+
3. To be able to run the sass command from anywhere in your terminal, you should move the executable to a directory that's included in your system's PATH environment variable. `/usr/local/bin` is a common place for this. This can vary between distros. A safe location is just to move `sass` and `src` to `~/.local/bin` which will allow your user to run the command sass. Then run `sass --version` to confirm that it's working.
18+
1419
Make sure you can run `sass --version` before continuing. If that command displays an error you may need to create an alias in your `~/.bashrc` file with whatever command your package manager provided you with.
1520

1621
When the above requirements are installed, simply run these commands:

0 commit comments

Comments
 (0)