I’m trying to set-up my react environment. When I run npm create-react-app my-app
, I get errors. These are the errors below:
npm WARN npm npm does not support Node.js v20.12.2
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12.
npm WARN npm You can find the latest version at https://nodejs.org/
[..................] : info using [email protected]
Creating a new React app in C:UsersMarkDocumentsmy-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
npm ERR! cb.apply is not a function
[..................] : info using [email protected]
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersMarkAppDataRoamingnpm-cache_logs2024-04-27T23_03_13_109Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts has
failed.
Deleting generated file... package.json
Deleting my-app / from C:UsersMarkDocuments2.2
Done.
Can anyone please help me or guide me in the right direction to setting-up my react environment?
Thanks!