M
M
Millerish2016-05-04 09:37:51
IntelliJ IDEA
Millerish, 2016-05-04 09:37:51

Jetbrains how to setup sass compiler?

Good morning!

I want to set up a preprocessor in Idea Idea through Node js.

I installed Node js and node-sass.

9ff9040027484fdaac94d3259a15698a.PNG

In the ide itself, such settings.

f579ea7cfe934abc9e0d2bf7b47da133.PNG

In console:
9:25:22 An exception occurred while executing watcher 'Sass'. Watcher has been disabled. Fix it.: Cannot run program "C:\Users\mk\node_modules\node-sass\bin\node-sass" (in directory "C:\Users\mk\Desktop\OpenServer\domains\SFAK-popup"): CreateProcess error=193, %1 is not a Win32 application
9:25:53 An exception occurred while executing watcher 'Sass'. Watcher has been disabled. Fix it.: Cannot run program "C:\Users\mk\node_modules\.bin\node-sass" (in directory "C:\Users\mk\Desktop\OpenServer\domains\SFAK-popup"): CreateProcess error= 193, %1 is not a Win32 application

Tried supplying different files like node-sass(\node_modules\node-sass\bin) Tell me

what's wrong and how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DanWeb, 2017-05-31
@Millerish

In order for Idea to work correctly. it needs Ruby https://rubyinstaller.org.
After installation, you launch cmd in Windows and write gem install sass.
Once sass is installed, look for the folder where you put Ruby / bin and specify the path to sass.bat
Ur idea no longer swears!)

D
Dred Wolf, 2020-11-03
@DredWulf

Through the ide terminal, install sass and configure in the SCSS file watcher

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question