npm ERR! Maximum call stack size exceeded
npm cache clean --force
ERROR in Maximum call stack size exceeded
It is likely that a function with infinite loop is being called
Uncaught RangeError: Maximum call stack size exceeded
// Can be caused by a large recursive function, i.e:
function fibonacci(num){
if (num === 1)
{
return [0, 1]
}
else
{
var s = fibonacci(num - 1)
s.push(s[s.length - 1] + s[s.length - 2])
return s
}
};
fibonacci(20000)[20000]
// In which case, the fix is to make it non-recursive if possible
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us