DEV Community

Seog-Jun Hong
Seog-Jun Hong

Posted on

How to release a project(w. npm)

Finally, I could release til-tool project to npm. I'll walk through how to release the project to npm.

How to release

Step 1. Create a npm account

Image description

Step 2. Login to your npm account through cmd

npm login
Enter fullscreen mode Exit fullscreen mode

This command will redirect to npm webpage to login.

Step 3. Check your project is ready to release

First, you should have a project and create a package.json file through npm init because package.json file contains the bare necessities that you need to publish your project. Also, check out the version of the project as well.

Step 4. Publish your project

npm publish
Enter fullscreen mode Exit fullscreen mode

Image description

This command helps you to publish your project to npm. You might have an error if there's already the same name of the package on npm. Then, you need to update the name of your project on package.json before publishing your project.

Top comments (0)