Publishing a Package
Learn how to publish a package to npm.
We'll cover the following...
Create an account
First, we will need an npm account. If you don’t have one yet, you can create it here.
CLI login
Next, we need to log in from the npm CLI. It is installed alongside Node.js. Use npm login
and fill in your details.
root@educative:/# npm login
Username: zorro
Password:
Email: (this IS public) zorro@educative.io
Logged in as zorro on https://registry.npmjs.org/.
root@educative:/#
The folder
If you have already made a package, navigate to that folder. If you are just getting started, make a new directory and navigate into it.
...