I'm unable create a new Project in React native. Used Command is react-native init Myproject. Please refer the below image.
            Asked
            
        
        
            Active
            
        
            Viewed 821 times
        
    0
            
            
        - 
                    1[Maximum call stack size exceeded on npm install](https://stackoverflow.com/questions/40566348/maximum-call-stack-size-exceeded-on-npm-install) – paul-shuvo Jun 24 '20 at 18:19
- 
                    @paul-shuvo . If I run the command **npm cache clean --force**, may it affect my existing projects..?? – Shankar Jun 24 '20 at 18:25
- 
                    do you have this error every time you use `npm install` or while using `react-native init`? – paul-shuvo Jun 24 '20 at 18:31
- 
                    This error shows only when i create new project (`react-native init`).. In existing project when i run `npm install` it works fine.. – Shankar Jun 24 '20 at 18:36
- 
                    2remove the global binary `react-native` and try with `npx react-native init Myproject` – paul-shuvo Jun 24 '20 at 18:44
- 
                    @paul-shuvo. Thanks paul-shuvo... it works with this command..`npm cache clean --force` – Shankar Jun 25 '20 at 19:50
2 Answers
1
            It seems that you have memory issues with npm, try to clean cache :
`npm cache clean`
or
npm cache clean --force
and if it's a new project why not using yarn ? :)
 
    
    
        Salim
        
- 198
- 1
- 10
1
            
            
        Do the following:
- Remove the global binary react-native
- Run npx react-native init Myproject
 
    
    
        paul-shuvo
        
- 1,874
- 4
- 33
- 37

