On executing
npm install -g @aws-amplify/cli
It results in
npm ERR! Maximum call stack
I figured out an answer to the problem, which probably lies with Nodejs version 12.16 and many other earlier versions like 5.0 and 10; But using version 13.13 solved the problem and the command run with no issues.