Home

Create a NPM Package

How to Sign Up

  • Sign up on npmjs.com
  • npm login
  • Create package.json
  • Test
  • Publish

Within your project, ensure you .gitignore node_modules.

If your program depends on another package, ensure you compile it on the local machine.

On the npm website, you need to login. Ensure you complete the form! Your email will also be shown with all the packages.

Once you've signed up

npm login to be able to login.

When you're inside the folder, ensure that you npm init.

Entry point will be the main file in the project.

If you have want to test this, you can use npm install /path/to/package/

Repository

https://github.com/okeeffed/developer-notes-nextjs/content/npm/npm-create-package

Sections


Related