I wanted to make a react native app so I was following this video https://www.youtube.com/watch?v=I2UBjN5ER4s React Website Tutorial. I am primarily on windows I wanted my computer to accept commands just like Brian's. So I figured out a way https://www.youtube.com/watch?v=xzgwDbe7foQ Using Corry's method on installing the Ubuntu app I also installed a couple of things listed below and tried running the command npx create-react-app
added 1394 packages in 5m
213 packages are looking for funding
run `npm fund` for details
node:internal/fs/utils:348
throw err;
^
Error: EPERM: operation not permitted, copyfile '/mnt/c/Users/user/Visual Studio Code Projects/website/react-website/node_modules/cra-template/template/README.md' -> '/mnt/c/Users/user/Visual Studio Code Projects/website/react-website/README.md'
at Object.copyFileSync (node:fs:2866:3)
at copyFile (/mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:73:6)
at onFile (/mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:59:25)
at getStats (/mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:51:44)
at startCopy (/mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:41:10)
at copyDirItem (/mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:125:10)
at /mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:118:39
at Array.forEach (<anonymous>)
at copyDir (/mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:118:23)
at onDir (/mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:108:10) {
errno: -1,
syscall: 'copyfile',
code: 'EPERM',
path: '/mnt/c/Users/user/Visual Studio Code Projects/website/react-website/node_modules/cra-template/template/README.md',
dest: '/mnt/c/Users/user/Visual Studio Code Projects/website/react-website/README.md'
}
Node.js v18.12.1
Aborting installation.
node has failed.
Deleting generated file... node_modules
Deleting generated file... package.json
Done.
I just wanted to execute commands just like Brian's through windows rather than purchasing a mac or etc.
I installed the js nodes and npm via command:
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
which I got from here: npm show "NPM ELF : not found error" in WSL
I also wanted to upvote or commented but since I "just" joined I couldn't.
thank you for any help I am going to remove everything start from scratch in the mean time
I also installed g -g++ something along those lines in order to get the npm working I am beginner just getting started.
Again thank you for reading and helping.
(If I figured it out I will update this post whenever possible)
If this helps out anybody else in the future cheers.