Introducing Sass Modules - problem sass-migrator

Viewed 2399
1 Answers

I had the same error message. If you are in the same situation than I was:

  • Installed sass-migrator as a global npm package (npm install -g sass-migrator)
  • Don't have Dart installed
  • On Windows (I don't know if this is relevant though)

Then this is probably because you need Dart installed on your machine, as the tool is built on top of it.

Installing sass-migrator with chocolatey solves the problem, as it automatically installs Dart along the package. Once chocolatey is installed, run the command choco install sass-migrator. It will add the command to your path as sass-migrator.exe.

The commands were taken from sass migrator's docs.


Note: As of writing (August 2020), there's a bug with chocolatey's sass-migrator installation that will prevent you from running sass-migrator on Windows. The solution, very simple, is described here: Github issue.

Related