It is likely that a function with infinite loop is being called
npm cache clean --force
// It's possible that you have 2 functions with the same name