Skip to content

Strapi V4 not working with Node 16 + npm7/8 (without yarn installed globally) #11729

@jeromelaurens

Description

@jeromelaurens

Bug report

Describe the bug

When running the first command line provided for strapi V4 npx create-strapi-app my-project --quickstart , it ends with an error

Steps to reproduce the behavior

  1. Go to your terminal App
  2. type npx create-strapi-app my-project --quickstart
  3. wait
  4. See error
> my-project@0.1.0 build
> strapi build "--no-optimization"

Building your admin UI with development configuration ...

● Webpack █████████████████████████ building (10%) 0/1 entries 114/121 dependencies 9/87 modules 71 active
 node_modules/regenerator-runtime/runtime.js

ModuleNotFoundError: Module not found: Error: Can't resolve '@strapi/design-system/themes' in '/xxxxxxxxxx/my-project/.cache/admin/src'
...

Expected behavior

Strapi working

System

  • Node.js version: latest LTS : v16.13.0
  • NPM version: 8.1.0
  • Strapi versionV4
  • Database: not yet the problem
  • Operating system: MacOS Monterey with ARM Silicon chip

Metadata

Metadata

Assignees

Labels

issue: bugIssue reporting a bugseverity: highIf it breaks the basic use of the productsource: core:adminSource is core/admin packagestatus: confirmedConfirmed by a Strapi Team member or multiple community members

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions