npm init not working while creating new project

Viewed 92

I'm creating a new project using npm init. But while running the command 'npm init -y', I get the error shown below. enter image description here

Any solutions as to what might be the issue.

1 Answers

I had that once, delete the node modules folder and try npm i once again

rm -rf node_modules
npm i
Related