I am trying to create a next.js app with tailwindcss, but when I enter the following command:
yarn create next-app -e -tailwindcss demo-app-full
It always results with an error, viz:-
$ yarn create next-app -e -tailwindcss demo-app-full
yarn create v1.22.17
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "create-next-app@12.0.10" with binaries:
- create-next-app
'C:\Users\7386-85615SG' is not recognized as an internal or external command,
operable program or batch file.
error Command failed.
Exit code: 1
Command: C:\Users\7386-85615SG 2913642\AppData\Local\Yarn\bin\create-next-app
Arguments: -e -tailwindcss demo-app-full
Directory: C:\Users\7386-85615SG 2913642\Desktop\HEMANG\Pionauts
Output:
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.
To bypass this, I have done various steps, which include
1. yarn upgrade
yarn add yarn
yarn info
2. npm install -g npm@latest
nvm install node
npm install -g yarn
Tried using the steps given in this solution:- Yarn Start Command failed with exit code 1 but this also didn't work.