Error: EPERM: operation not permitted, mkdir 'C:\Users\Stijn'
program not found in create-react-app
It seems that I have worked around this by changing the system authorizations (although I am in doubt whether I should actually do that), but then the next error appears:
npm ERR! code ENOLOCAL
npm ERR! Could not install from "Klijn\AppData\Roaming\npm-cache\_npx\1984" 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\Stijn Klijn\AppData\Roaming\npm-cache\_logs\2021-05-01T13_36_08_074Z-debug.log
I’m not sure why this is and what I am supposed to do. The Codecademy info makes it seem a lot simpler to get started with React Can anyone help me out? Thanks a lot in advance!
Delete your npm and npm-cache from your Roaming directory or any where it is present.
Then go to your vs code or terminal and be on the folder which you are creating the project like (my app). Enter this command npm install npm@latest -g
and now run npx create-react-app ./ OR npx create-react-app my-app
Unfortunately it keeps complaining. This time when i try npm start I get the following error:
> [email protected] start
> react-scripts start
'JavaScript\testreact\testreact\node_modules\.bin\' is not recognized as an internal or external command,
operable program or batch file.
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'C:\Users\Stijn Klijn\Desktop\react-scripts\bin\react-scripts.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
I don’t understand what to do here. Why is it referring to a folder as a command? And why is it suddenly looking for a file in a completely different folder? Argh