Every time I attempt to set up a new Next.js Tailwind 'App' using the command
npx create-next-app -e with-tailwindcss my-project
, I encounter the following issue:
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' ]
}
Could someone please advise on what I might be doing incorrectly? Appreciate your help.