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.
-
You can use Node-sassKamil Naja– Kamil Naja2018-07-16 10:06:55 +00:00Commented Jul 16, 2018 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– Akash Kool2018-07-16 10:12:50 +00:00Commented Jul 16, 2018 at 10:12
-
Show us grunt configuration. Your error clearly shows, that you need install Python.Kamil Naja– Kamil Naja2018-07-16 10:13:19 +00:00Commented Jul 16, 2018 at 10:13
-
Via NPM, use node-sass or node-sass-chokidar. You have to remove grunt file, move to npm style (package.json file).Malik Shahzad– Malik Shahzad2018-07-16 11:22:28 +00:00Commented Jul 16, 2018 at 11:22
-
Then what to use instead of grunt ?Akash Kool– Akash Kool2018-07-16 11:23:48 +00:00Commented Jul 16, 2018 at 11:23
Add a comment
|
2 Answers
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
Comments
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