Today I tried to create new react app using (create-react-app app-name
) in CMD and this error appeared :
PS C:\Users\ahmed\Desktop\My File\New Folder\New Folder JS\New Folder> create-react-app testing-app
C:\Users\ahmed\AppData\Roaming\npm\node_modules\create-react-app\node_modules\fs-extra\lib\mkdirs\mkdirs-sync.js:49
throw err0
^
RangeError: Maximum call stack size exceeded
at Object.mkdirSync (fs.js:738:10) ...
Also, the installation will be stuck if I try to install any package in this folder like prop-type
, I tried to update my node
as well create-react-app
but nothing change. I solved this problem by creating my react app in C:\Users\ahmed
not in C:\Users\ahmed\Desktop\My File\New Folder\New Folder JS\New Folder
So my question is: why I can't create react app in a long path like C:\Users\ahmed\Desktop\My File\New Folder\New Folder JS\New Folder
why it needs to be created in C:\Users \username
?