1

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.

5
  • You can use Node-sass Commented 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. Commented Jul 16, 2018 at 10:12
  • Show us grunt configuration. Your error clearly shows, that you need install Python. Commented 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). Commented Jul 16, 2018 at 11:22
  • Then what to use instead of grunt ? Commented Jul 16, 2018 at 11:23

2 Answers 2

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

Sign up to request clarification or add additional context in comments.

Comments

2

You can convert online using https://sass2css.herokuapp.com

And it provides several options / configurations. Such as

  1. Indent Style and Width
  2. Style Output
  3. Autoprefixer Toggle

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.