I am having a grunt file using which I am trying to convert SASS to CSS but I am unable to. I want to do it without using Ruby or Python. I only want to use NPM packages.
Asked
Active
Viewed 817 times
1
-
You can use Node-sass – Kamil Naja Jul 16 '18 at 10:06
-
Error: Can't find Python executable "python", you can set the PYTHON env variable. - getting this error after npm install --save-dev node-sass. – Akash Kool Jul 16 '18 at 10:12
-
Show us grunt configuration. Your error clearly shows, that you need install Python. – Kamil Naja Jul 16 '18 at 10:13
-
Via NPM, use [node-sass](https://www.npmjs.com/package/node-sass) or [node-sass-chokidar](https://www.npmjs.com/package/node-sass-chokidar). You have to remove grunt file, move to npm style (package.json file). – Malik Shahzad Jul 16 '18 at 11:22
-
Then what to use instead of grunt ? – Akash Kool Jul 16 '18 at 11:23
2 Answers
2
At the current date it is impossible.
Certain versions of node-sass have precompiled binaries, but if you aren't a supported platform then there's nothing you can do, install ruby or python.
See:
https://github.com/sass/node-sass/issues/1176
https://github.com/sass/node-sass/issues/2173
Node.js: Python not found exception due to node-sass and node-gyp

BookOfGreg
- 3,550
- 2
- 42
- 56
2
You can convert online using https://sass2css.herokuapp.com
And it provides several options / configurations. Such as
- Indent Style and Width
- Style Output
- Autoprefixer Toggle

0xdw
- 3,755
- 2
- 25
- 40

Tunji Oyeniran
- 3,948
- 1
- 18
- 16