As stated in title, the Yarn PM(package manager), that I just installed in my system(Windows 11 64Bit) doesn’t work if there’s space(s) in my UserProfile folder path.
My User folder name is “Firstname Surname” and thus when I try yarn create nuxt-app hello_world
, after a few success steps, it throws the below error and exits:
- create-nuxt-app 'C:UsersFirstname' is not recognized as an internal or external command, operable program or batch file. error Command failed. Exit code: 1 Command: C:UsersFirstname SurnameAppDataLocalYarnbincreate-nuxt-app Arguments: hello_world Directory: <path/to/my/project> Output:
I already tried doing what this answer suggested, but in vain, I guess the yarn
doesn’t use npm-cache
for create-app-<x>
commands.
Am I wrong in assuming that ? NuxtJS is installed in my system, so no issues there.
How can I fix the said error ? Ofcourse I would try to avoid changing my User profile folder name.