I have previously used and installed create react app globally,but when i tried to create a new app its not working.
So i followed this :https://github.com/facebook/create-react-app/issues/8097 didn't worked.
Then I tried this:Issues with uninstalling create-react-app I got the same error as in that question.
I have also tried : https://github.com/facebook/create-react-app/issues/8088
and https://icetutor.com/question/template-not-provided-using-create-react-app/ I really don't know what is the issue. When I am using the command
where create-react-app
i got this:
C:\Users\PC 2\AppData\Local\Yarn\bin\create-react-app
C:\Users\PC 2\AppData\Local\Yarn\bin\create-react-app.cmd
and when i use this :
npm rm -rf C:\Users\Weboffice PC 2\AppData\Local\Yarn\bin\create-react-app
gives this
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\package.json'
npm WARN saveError EPERM: operation not permitted, open 'C:\Users\package-lock.json.1678493388'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\package.json'
npm WARN Users No description
npm WARN Users No repository field.
npm WARN Users No README data
npm WARN Users No license field.
up to date in 0.058s
when I am using yarn to install I get
C:\Users\Weboffice PC 2\React>yarn create react-app test
yarn create v1.16.0
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "[email protected]" with binaries:
- create-react-app
[##########################################################################################################################################################################################] 225/225'
C:\Users\Weboffice' is not recognized as an internal or external command,
operable program or batch file.
error Command failed.
Exit code: 1
Command: C:\Users\Weboffice PC 2\AppData\Local\Yarn\bin\create-react-app
Arguments: test
Directory: C:\Users\Weboffice PC 2\React
Output:
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about
this command.
when i used yarn to uninstall I get
C:\Users\Weboffice PC 2\React>yarn uninstall create-react-app
yarn run v1.16.0
error Couldn't find a package.json file in "C:\\Users\\Weboffice PC
2\\React"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about
this command
question updated.