Magento2: Grunt exec:<theme> issue

Created on 2 Feb 2016  路  8Comments  路  Source: magento/magento2

This issue appears when executing the following command:
sudo grunt exec:

Processed Area: frontend, Locale: en_US, Theme: /, File type: less.

[Magento\Framework\Exception\FileSystemException]
The "/var/www//" file doesn't exist or not a file
dev:source-theme:deploy [--type="..."] [--locale="..."] [--area="..."] [--theme="..."] [file1] ... [fileN]
Exited with code: 1.
Warning: Task "exec:" failed. Use --force to continue.

Aborted due to warnings.

And this issue appears when executing the following command:
sudo grunt less:

Running "less:" (less) task

Destination pub/static/frontend///en_US/css/styles-m.css not written because no source files were found.
Destination pub/static/frontend///en_US/css/styles-l.css not written because no source files were found.

Done, without errors.

All 8 comments

image

i have this issue too. Any solution to it?

Thanks much and best regards,
Chris

Hello,

1. You try to run deploy static command line under your Magento root folder: php bin/magento setup:static-content:deploy
2. On Windows environment, please run command prompt as administrator: https://technet.microsoft.com/en-us/library/cc947813(v=ws.10).aspx

Run Grunt command again.

Thanks! guys .

@mayhem-ahmad do you still have this issue?

@MomotenkoNatalia
No I solved it, it turns out that i have errors in my theme less files .
Thanks!

Ran into a similar issue after I cleared the pub/frontend// directory and attempted to re-deploy via $ grunt exec:.

@mayhem-ahmad I close the issue for now. If you have further question to this issue please feel free to reopen.

@digimix Please create new issue with the steps to reproduce.

Was this page helpful?
0 / 5 - 0 ratings