webpack-5webpack-encoresymfony6

How Can I solve This Error 'encore' is not recognized as an internal or external command, operable program or batch file


I installed 'Encore Webpack' in my Symfony project. When I try to run npm run build I get the error 'encore' is not recognized as an internal or external command, operable program or batch file How do I resolve this error. PS I am developing on a Windows OS


Solution

  • you should run npm install first