Installing React with GIT

Installing React with GIT
0

#1

The last time that I tried to install react using the command npx create-react-app my-app on GIT it gave me the same problem and to solve it I renamed the JSON file, it took a bunch of time to download all the node modules but I got it to run and the server was also working.
Am I going to get this error each time now :roll_eyes::roll_eyes::roll_eyes:?

Is it because of the user name di bello? Iโ€™ve looked it up and it says that it might be because of the space. Here there is no "di " Could not install from bello\AppData\Roaming\npm-cache\_npx\13048

$ npx create-app-react new-app
npm ERR! code ENOLOCAL
npm ERR! Could not install from "bello\AppData\Roaming\npm-cache\_npx\13048" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\di bello\AppData\Roaming\npm-cache\_logs\2018-08-20T09_26_24_552Z-debug.log
Installation of [email protected] failed with code 1
npm ERR! code ENOLOCAL
npm ERR! Could not install from "bello\AppData\Roaming\npm-cache\_npx\13072" as it does not contain a package.json file.

Logs:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   '[email protected]',
1 verbose cli   '--global',
1 verbose cli   '--prefix',
1 verbose cli   'C:\\Users\\di',
1 verbose cli   'bello\\AppData\\Roaming\\npm-cache\\_npx\\196',
1 verbose cli   '--loglevel',
1 verbose cli   'error',
1 verbose cli   '--json' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 686009de538d9bd4
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData error for file:bello\AppData\Roaming\npm-cache\_npx\196 Could not install from "bello\AppData\Roaming\npm-cache\_npx\196" as it does not contain a package.json file.
8 http fetch GET 404 https://registry.npmjs.org/create-app-react 1130ms
9 silly fetchPackageMetaData error for [email protected] 404 Not Found: [email protected]
10 verbose stack Error: ENOENT: no such file or directory, open 'C:\Users\di bello\Desktop\folder_proj\projects\react_projects\third_project\bello\AppData\Roaming\npm-cache\_npx\196\package.json'
11 verbose cwd C:\Users\di bello\Desktop\folder_proj\projects\react_projects\third_project
12 verbose Windows_NT 10.0.17134
13 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "[email protected]" "--global" "--prefix" "C:\\Users\\di" "bello\\AppData\\Roaming\\npm-cache\\_npx\\196" "--loglevel" "error" "--json"
14 verbose node v8.11.4
15 verbose npm  v5.6.0
16 error code ENOLOCAL
17 error Could not install from "bello\AppData\Roaming\npm-cache\_npx\196" as it does not contain a package.json file.
18 verbose exit [ 1, true ]

#2

Did you have a look at these topics? Which of the suggested โ€˜solutionsโ€™ have you tried so far?
npx GitHub - issues 146
npx GitHub - issues 100


#4

you have create-app-react

it should be create-react-app

Create React App


#5

Thank you. :smiley::smiley::smiley: