In windows 10 i have an error using:
npm run build
in Classic theme themes/classic/_dev/
In C:\wamp64\www\PrestaShop\themes\classic_devpackage.json
"scripts": {
"build": "NODE_ENV=production webpack --progress --colors --debug --display-chunks",
is not correct for windows.
This is correct
"build": "set NODE_ENV=production & webpack --progress --colors --debug --display-chunks",
Steps to reproduce the behavior:
Screenshots
If applicable, add screenshots or screen recordings to help explain your problem.
Hello,
As far as I know we don't officially support windows as a development platform.
Can you confirm this @matks or @PierreRambaud?
I think we support Windows as development platform, but not as production platform 馃 .
Ping @NeOMakinG can you please help us?
You can use Git for Windows and everything will be working well.
We can't change the build command because it's how Unix/Linux systems are working, but with Git Bash, you can use the same syntax in Windows :)
I would recommend to use Git Bash too
Hello @FabioFormenti
I agree with @PierreRambaud & @NeOMakinG, you should use Git Bash and you will not face any problem.
After download Git, click on Git icon with the (mouse) right button and choose open Git Bash and then execute the command:
npm run build
_PS: Don't forget to check if the npm is installed_ :wink:
So, I close the issue cause it's not related to the PrestaShop Core.
Thanks guys for your quick replies :rocket:
Thanks!