Prestashop: npm run build in Classic theme themes/classic/_dev/ not correct in windows

Created on 20 Dec 2020  路  5Comments  路  Source: PrestaShop/PrestaShop

Describe the bug

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.

Expected behavior

This is correct
"build": "set NODE_ENV=production & webpack --progress --colors --debug --display-chunks",

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots

If applicable, add screenshots or screen recordings to help explain your problem.

Additional information

  • PrestaShop version: 1.7.7.x
  • PHP version: N/A
No change required

All 5 comments

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!

Was this page helpful?
0 / 5 - 0 ratings