Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

davy_yg's avatar
Level 27

Install sass

I wonder why the sass does not work?

F:\xampp\htdocs\blog_footer>npm install -g sass
C:\Users\ACER\AppData\Roaming\npm\sass -> C:\Users\ACER\AppData\Roaming\npm\node_modules    \sass\sass.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\sass\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ [email protected]
updated 1 package in 1.578s

F:\xampp\htdocs\blog_footer>sass footer.scss footer.css
'sass' is not recognized as an internal or external command,
operable program or batch file.

ref: https://sass-lang.com/install

0 likes
8 replies
davy_yg's avatar
Level 27

What is the path that I have to add to the env variable ?

ajithlal's avatar
ajithlal
Best Answer
Level 18

path to sass.bat file.

In my system its C:\Ruby26-x64\bin;

davy_yg's avatar
Level 27

I cannot find that file. I can find these files:

C:\Users\ACER\AppData\Roaming\npm\node_modules\sass>dir
Volume in drive C is Window
Volume Serial Number is 82D0-DCBF

Directory of C:\Users\ACER\AppData\Roaming\npm\node_modules\sass

12/10/2019  12:03 PM    <DIR>          .
12/10/2019  12:03 PM    <DIR>          ..
12/10/2019  12:03 PM    <DIR>          node_modules
12/10/2019  12:03 PM             1.436 package.json
10/26/1985  03:15 PM             8.638 README.md
10/26/1985  03:15 PM         2.232.569 sass.dart.js
10/26/1985  03:15 PM               273 sass.js
           4 File(s)      2.242.916 bytes
           3 Dir(s)  76.631.564.288 bytes free
ajithlal's avatar

which method you followed to install sass. I used the standalone method.

davy_yg's avatar
Level 27

You can check my first post:

npm install -g sass

I map this to user variable (environment variable):

C:\Users\ACER\AppData\Roaming\npm\sass

I even try to install sass using:

choco install sass

even after I install it sass --version does not work.

ajithlal's avatar

do you have a sass.bat file in C:\Users\ACER\AppData\Roaming\npm\sass path?

Please or to participate in this conversation.