How to Create and Publish an NPM Package

preview_player
Показать описание
Publishing a Javascript package to the NPM registry is quite easy, but there are some gotchas and things to know along the way. I'll show creating a super simple package, creating an NPM account, and then publishing a package. Then I'll go over unpublishing packages and how to publish a scoped package and why.

~~~~~~

00:00 - What we'll cover
00:48 - Setting up the package project
02:51 - Creating an NPM account
04:38 - Disclaimer about following along
05:54 - Trying to publish without verified email
06:28 - Successful publish of unscoped package
07:21 - Installing our new package in a new project
08:33 - Aside about the ease of publishing packages
09:22 - Why I set the version to 0.1.0
10:00 - Unpublishing then publishing a scoped package
12:57 - Wrap-up

~~~~~~

Follow Jimmy Cleveland's doings:

#javascript #npm
Рекомендации по теме
Комментарии
Автор

so once we publish it to npm, we can install it with npm, yarn, pnpm etc. right?

harshavardhannakkina
Автор

This was very good. Thank you good sir.

stephenpaulhassall
Автор

Awesome..plz keep it up...very well explained 👌🏻👌🏻👌🏻👏👏👏

sandeep
Автор

Looking forward to watching semantic versioning tutorial!!

feridbedelov
Автор

Hey matey! Just want to say, thanks for the content 👍🏼👍🏼

drewbird
Автор

Great video dude, easy to follow and informative. You love to see it.

jamesbruner
Автор

The best channel i've ever seen! Do SQL pls if u can, i think it would be very interesting

thepopstudio
Автор

Unfortunately I am having the problem where my code just doesn't end up in the registry even after a successful publish.

bad_ai_engineer