React Native - npm ERR! Maximum call stack size exceeded

I have install react-native with the manual from react native homepage.
If I run npx react-native init name (create a new project) or npm install (in a existing project) I get always the error:

npm ERR! Maximum call stack size exceeded

First … did you use root or sudo at all?
Apparently that can sometimes be the cause … in which case you should fix that and run

npm rebuild

Otherwise the internet says clean cache?

npm cache clean --force

See for example:

1 Like