Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Error, when running: npx create-next-app -e with-tailwindcss my-project

when I try to create a new Next.js Tailwind ‘App’ (with this command: npx create-next-app -e with-tailwindcss my-project) I get the following error:

C:\socialmedia3>npx create-next-app -e with-tailwindcss socialmedia3
Creating a new Next.js app in C:\socialmedia3\socialmedia3.

Downloading files for example with-tailwindcss. This might take a moment.

Installing packages. This might take a couple of minutes.

Der Befehl "yarn" ist entweder falsch geschrieben oder
konnte nicht gefunden werden. // This is German and means something like: The command "yarn" is either misspelled or could not be found.
node:events:368
      throw er; // Unhandled 'error' event
      ^

Error: spawn yarn ENOENT
    at notFoundError (C:\Users\jesse\AppData\Local\npm-cache\_npx\efeac22998af9bf2\node_modules\create-next-app\dist\index.js:100:3828)
    at verifyENOENT (C:\Users\jesse\AppData\Local\npm-cache\_npx\efeac22998af9bf2\node_modules\create-next-app\dist\index.js:100:4207)
    at ChildProcess.e.emit (C:\Users\jesse\AppData\Local\npm-cache\_npx\efeac22998af9bf2\node_modules\create-next-app\dist\index.js:100:4062)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess.e.emit (C:\Users\jesse\AppData\Local\npm-cache\_npx\efeac22998af9bf2\node_modules\create-next-app\dist\index.js:100:4103)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn yarn',
  path: 'yarn',
  spawnargs: [ 'install' ]
}

What am I doing wrong? Best wishes.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

It seems that the lib you are using via npx requires yarn to be installed and it is not.

You can install it with npm i -g yarn.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading