Help with Dart Sass installation on Mac

Hmm I seem to have trouble as well installing Dart Sass

my-project on ī‚  master [!?] via īœ˜ v18.17.1 via šŸ’Ž v2.7.4 on ā˜ļø  took 37s
āÆ hugo env
hugo v0.119.0-b84644c008e0dc2c4b67bd69cccf87a41a03937e+extended darwin/amd64 BuildDate=2023-09-24T15:20:17Z VendorInfo=brew
GOOS="darwin"
GOARCH="amd64"
GOVERSION="go1.21.1"
OptionParser::InvalidOption: invalid option: --embedded
  Use --trace for backtrace.
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.2.4"

my-project on ī‚  master [!?] via īœ˜ v18.17.1 via šŸ’Ž v2.7.4 on ā˜ļø  marceloverdijk@gmail.com
āÆ brew tap --repair
brew %

my-project on ī‚  master [!?] via īœ˜ v18.17.1 via šŸ’Ž v2.7.4 on ā˜ļø  took 3s
āÆ brew remove dart
bUninstalling /usr/local/Cellar/dart/3.1.3... (990 files, 536.8MB)
r%

my-project on ī‚  master [!?] via īœ˜ v18.17.1 via šŸ’Ž v2.7.4 on ā˜ļø  took 2s
āÆ brew remove sass
Uninstalling /usr/local/Cellar/sass/1.68.0... (7 files, 8.6MB)

my-project on ī‚  master [!?] via īœ˜ v18.17.1 via šŸ’Ž v2.7.4 on ā˜ļø  took 2s
āÆ brew update
Installing from the API is now the default behaviour!
You can save space and time by running:
  brew untap homebrew/core
  brew untap homebrew/cask
Already up-to-date.

my-project on ī‚  master [!?] via īœ˜ v18.17.1 via šŸ’Ž v2.7.4 on ā˜ļø  took 12s
āÆ brew install dart-lang/dart/dart
==> Fetching dart-lang/dart/dart
==> Downloading https://storage.googleapis.com/dart-archive/channels/stable/release/3.1.3/sdk/dartsdk-macos-x64-release.zip
Already downloaded: /Users/marceloverdijk/Library/Caches/Homebrew/downloads/6cb5f21282570b5a58752ce0215906a17df341e0ec39ccbb796c9a0b837895a6--dartsdk-macos-x64-release.zip
==> Installing dart from dart-lang/dart
==> Caveats
Please note the path to the Dart SDK:
  /usr/local/opt/dart/libexec
==> Summary
šŸŗ  /usr/local/Cellar/dart/3.1.3: 990 files, 536.8MB, built in 7 seconds
==> Running `brew cleanup dart`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

my-project on ī‚  master [!?] via īœ˜ v18.17.1 via šŸ’Ž v2.7.4 on ā˜ļø  took 11s
āÆ brew install sass/sass/sass
==> Fetching sass/sass/sass
==> Downloading https://github.com/sass/dart-sass/archive/1.68.0.tar.gz
Already downloaded: /Users/marceloverdijk/Library/Caches/Homebrew/downloads/92b8f3e3836667e2dcc0aeae26d7bfc884120e4b82259ba76b86b75f8f2d4dad--dart-sass-1.68.0.tar.gz
==> Installing sass from sass/sass
==> /usr/local/opt/dart/libexec/bin/dart pub get
==> /usr/local/opt/dart/libexec/bin/dart run grinder protobuf
==> /usr/local/opt/dart/libexec/bin/dart compile exe -Dversion=1.68.0 -Dcompiler-version=1.68.0 -Dprotocol-version=2.2.0 bin/sass.dart -o sass
šŸŗ  /usr/local/Cellar/sass/1.68.0: 7 files, 8.6MB, built in 35 seconds
==> Running `brew cleanup sass`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

my-project on ī‚  master [!?] via īœ˜ v18.17.1 via šŸ’Ž v2.7.4 on ā˜ļø  took 38s
āÆ hugo env
hugo v0.119.0-b84644c008e0dc2c4b67bd69cccf87a41a03937e+extended darwin/amd64 BuildDate=2023-09-24T15:20:17Z VendorInfo=brew
GOOS="darwin"
GOARCH="amd64"
GOVERSION="go1.21.1"
OptionParser::InvalidOption: invalid option: --embedded
  Use --trace for backtrace.
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.2.4"


hugo env only shows libsass ā€¦
Any idea what could be wrong?

What is the result of running which sass?

Good point!

It seemed Ruby sass was installed (globally) from when using Jekyll in the past :wink:

If somebody else stumbles on this, this is what i did to resolve it:

āÆ which sass
/Users/marceloverdijk/.rvm/gems/ruby-2.7.4/bin/sass

āÆ npm uninstall -g sass

up to date in 344ms

āÆ which sass
/Users/marceloverdijk/.rvm/gems/ruby-2.7.4/bin/sass

āÆ gem uninstall sass

You have requested to uninstall the gem:
	sass-3.7.4

jekyll-sass-converter-1.5.2 depends on sass (~> 3.4)
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN]  y
Remove executables:
	sass, sass-convert, scss

in addition to the gem? [Yn]  y
Removing sass
Removing sass-convert
Removing scss
Successfully uninstalled sass-3.7.4

āÆ which sass
/usr/local/bin/sass

āÆ hugo env
hugo v0.119.0-b84644c008e0dc2c4b67bd69cccf87a41a03937e+extended darwin/amd64 BuildDate=2023-09-24T15:20:17Z VendorInfo=brew
GOOS="darwin"
GOARCH="amd64"
GOVERSION="go1.21.1"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.2.4"
github.com/sass/dart-sass/protocol="2.2.0"
github.com/sass/dart-sass/compiler="1.68.0"
github.com/sass/dart-sass/implementation="1.68.0"

This SO page also helped: bash - How do I stop using ruby Sass and start using Dart-sass. Uninstall-Install them respectively - Stack Overflow

Thanks @jmooring !

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.