Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Can't install sass on windows 11

I have tried to install sass through multiple option but it isn't working on my laptop. I tried using chocolatey and this is what comes up:

C:\Windows\System32>choco install sass
Chocolatey v2.2.2
Installing the following packages:
sass
By installing, you accept licenses for the packages.
Progress: Downloading sass 1.69.5... 100%

sass v1.69.5 [Approved]
sass package files install completed. Performing other installation steps.
The package sass wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint):

Timeout or your choice of '' is not a valid selection.
You must select an answer
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): Y

Fetching Dart dependencies...
ERROR: The term 'dart' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
The install of sass was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\sass\tools\chocolateyInstall.ps1'.
 See log for details.

1 Answer

Jamie Reardon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

Hey Esmee Fulcher to install sass, dart is required as a dependency as the error hints that it is looking to read dart to install sass. Install that first via chocolately.