Is npm init needed?
It is not required. You can install packages without, and everything will work.
npm init
can do basically two things:
- ask for basic project info to include in packages.json
- create a specific type of project (for example React) by using
npm init typeofproject
If you just want to use packages and don’t care about naming the project or using a template, just install packages.