Installation of strapi core (node modules) and project in separate directory

Simple answer is don’t install the strapi cli tool globally and use the built in scripts located in the package.json.

Instead of strapi version use yarn strapi version or npm run strapi version likewise when you are creating new project, don’t use the global CLI use either yarn or npx:

  • npx create-strapi-app@latest my-project
  • yarn create strapi-app my-project