Trying to create react app with; npx create-react-app <my-app>
on my WSL. But I keep getting this;
(node:11362) UnhandledPromiseRejectionWarning: Error: EPERM: operation not permitted, copyfile '/home/cliffaust/.nvm/versions/node/v14.17.0/lib/node_modules/create-react-app/yarn.lock.cached' -> '/mnt/c/Users/kings/firstproject/yarn.lock'
at Object.copyFileSync (fs.js:2059:3)
at copyFile (/home/cliffaust/.nvm/versions/node/v14.17.0/lib/node_modules/create-react-app/node_modules/fs-extra/lib/copy-sync/copy-sync.js:67:6)
at onFile (/home/cliffaust/.nvm/versions/node/v14.17.0/lib/node_modules/create-react-app/node_modules/fs-extra/lib/copy-sync/copy-sync.js:53:25)
at getStats (/home/cliffaust/.nvm/versions/node/v14.17.0/lib/node_modules/create-react-app/node_modules/fs-extra/lib/copy-sync/copy-sync.js:48:44)
at startCopy (/home/cliffaust/.nvm/versions/node/v14.17.0/lib/node_modules/create-react-app/node_modules/fs-extra/lib/copy-sync/copy-sync.js:38:10)
at handleFilterAndCopy (/home/cliffaust/.nvm/versions/node/v14.17.0/lib/node_modules/create-react-app/node_modules/fs-extra/lib/copy-sync/copy-sync.js:33:10)
at Object.copySync (/home/cliffaust/.nvm/versions/node/v14.17.0/lib/node_modules/create-react-app/node_modules/fs-extra/lib/copy-sync/copy-sync.js:26:10)
at createApp (/home/cliffaust/.nvm/versions/node/v14.17.0/lib/node_modules/create-react-app/createReactApp.js:330:10)
at /home/cliffaust/.nvm/versions/node/v14.17.0/lib/node_modules/create-react-app/createReactApp.js:226:9
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:11362) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:11362) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I installed node by first installing nvm using;
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
Then installed npm;
nvm install node
Everything works fine, but npx create-react-app <my-app>
seems not to be working. I also tried it with nuxt, using npx create-nuxt-app <my-app>
and I get npm WARN tar EPERM: operation not permitted, futime
. I don't know if that's related or the same. I am new to linux in general, and it will be nice if explanation or answer is presented simple.