I'm creating a new project using npm init. But while running the command 'npm init -y', I get the error shown below.
Any solutions as to what might be the issue.
I had that once, delete the node modules folder and try npm i once again
npm i
rm -rf node_modules npm i