Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React boilerplate : Maximum call stack size exceeded

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?

like image 773
Vipul Solanki Avatar asked Oct 26 '25 23:10

Vipul Solanki


2 Answers

I spent few hours resolving this issue. Below solution worked for me

rm -rf node_modules

npm cache clean --f

npm install
like image 134
Prateek Kapoor Avatar answered Oct 29 '25 13:10

Prateek Kapoor


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 :(

like image 22
Vipul Solanki Avatar answered Oct 29 '25 14:10

Vipul Solanki



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!