name can only contain URL-friendly characters
i was getting the same problem but i changed package-name first name was like
My Folder Name
i changed it to
my-folder-name
no spaces & no Capital words
it solved the problem for me
Happy coding
npm init is actually creating the package.json file and setting the characteristics of the project(It has no relation with bootstrap). So, in the field package name, you have to enter the name of your project (you have now entered the npm install bootstrap command) or you can just press enter if the name displayed in bracket is enough. Complete the npm init processs by setting all characteristics of project.
As next step, you can do npm install [email protected] --save
. It'll work
Deleting the lock-file and running npm i
again solved the issue for me.