Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Css preprocessor was not found. Have you installed it locally?" #15

Closed
jaysalvat opened this issue May 17, 2016 · 4 comments
Closed

Css preprocessor was not found. Have you installed it locally?" #15

jaysalvat opened this issue May 17, 2016 · 4 comments

Comments

@jaysalvat
Copy link

jaysalvat commented May 17, 2016

Hello! :)

Sorry for my question. Sure I'm missing something simple.

The --style flag doesn't seem to work for me. --type and --template are ok.

I've installed all the parsers:

$ npm install babel jade coffee-script node-sass less

And tried all the flags;

$ riot src dist --type coffeescript

Works.

$ riot src dist --type babel

Works.

$ riot src dist --template jade

Works.

But...

$ riot src dist --style sass

"The "sass" css preprocessor was not found. Have you installed it locally?"

$ riot src dist --style less

"The "less" css preprocessor was not found. Have you installed it locally?"

I also tried:

$ riot src dist --type lessc

"The "lessc" javascript preprocessor was not found. Have you installed it locally?"

$ riot src dist --type node-sass

"The "node-sass" javascript preprocessor was not found. Have you installed it locally?"

What am I missing?

Thanks in advance.

@GianlucaGuarini
Copy link
Member

Hi have you tried to install the dependencies using the -g flag?

@jaysalvat
Copy link
Author

Thanks @GianlucaGuarini ! It works with -g.

The message said "Have you installed it locally?". Not Globally.

Thanks :)

@GianlucaGuarini
Copy link
Member

GianlucaGuarini commented May 17, 2016

It depends where you run $ riot, if you have it installed globally you need to install your dependencies globally, if you run it via npm inside a project folder your require calls will be resolved locally

@jaysalvat
Copy link
Author

Makes sens. Thanks for your time !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants