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 ?
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 prefix@latest 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 'create-app-react@latest',
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 npm@5.6.0
3 info using node@v8.11.4
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 create-app-react@latest 404 Not Found: create-app-react@latest
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" "create-app-react@latest" "--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 ]