m2-boilerplate / Module-Critical-CSS

Magento 2 module to automatically generate critical css with the addyosmani/critical npm package
MIT License
34 stars 16 forks source link

Error running command bin/magento m2bp:critical-css:generate #5

Closed JelleGe closed 4 years ago

JelleGe commented 4 years ago

We face the following issue when we run the command bin/magento m2bp:critical-css:generate

The command "'critical' '--version'" failed.                             

  Exit Code: 127(Command not found)                                        

  Working directory: /application  

  Output:                                                                  
  ================                                                         

  Error Output:                                                            
  ================                                                         
  sh: regel 0: exec: critical: not found                               

m2bp:critical-css:generate
thampe commented 4 years ago

Hi,

did you install the critical npm package?


npm i -D critical
JelleGe commented 4 years ago

Thanks! That indeed solved the issue.