Strapi develop command failed

I am running Manjaro Linux and had the same issue.

Solved with this stack overflow thread:

elaborating on it:

  1. in your strapi folder, go to → node_modules/strapi-admin/webpack.config.js
  2. locate the line → require.resolve(’@babel/preset-env’)
  3. replace it with [require.resolve(’@babel/preset-env’),{ targets: “defaults” }],
  4. run the command - npm run dev

your strapi app will work as normal.

1 Like