Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I need to import a remote file into my less document

I'm using: @import "http://example.com/Content/bootstrap.less";

but getting the following error:

Error 7 LESS: optional dependency 'request' required to import over http(s)

any ideas on how to solve this?

like image 349
Leo Javier Avatar asked Dec 19 '22 23:12

Leo Javier


2 Answers

Try command npm install -g request in console (cmd), its helps for me.

like image 182
Arthur Shlain Avatar answered Dec 21 '22 12:12

Arthur Shlain


Open Terminal/Console and install request dependency globally:

npm install -g request
like image 23
Matheus Abreu Avatar answered Dec 21 '22 12:12

Matheus Abreu