React boilerplate : Maximum call stack size exceeded

Vipul Solanki picture Vipul Solanki · Feb 5, 2019 · Viewed 7.1k times · Source

I'm trying to create react-boilerplate but got bellow error.

npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dev1/.npm/_logs/2019-02-05T10_12_55_340Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] presetup: `npm i chalk shelljs`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] presetup script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dev1/.npm/_logs/2019-02-05T10_12_55_434Z-debug.log

Node version : v8.9.4

I've clone setup from git and run npm run setup command but got this error.

Note: remove node_modues and re-install node_modules - not working uninstall node globaly and re-install node - not working

Can anyone help?

Answer

Vipul Solanki picture Vipul Solanki · Feb 5, 2019

I checked the npm logs and I saw that it was failing at install @xtuc/ieee754 I found this solution https://github.com/angular/angular-cli/issues/12231

Its likely that you have to remove your ~/.npmrc file.

I tried this and it solved the issue for me.

Hope this helps!

This issue just wasted my 6 hours only :(