The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Publishing to npm

Publishing to npm

2:36
Putting your code up on GitHub is helpful, but publishing your library to npm makes it even easier for people to use your library. In this lesson, you'll learn how to publish your library and validate that it published correctly.
Watch this lesson now
Avatar
egghead.io

Putting your code up on GitHub is helpful, but publishing your library to npm makes it even easier for people to use your library. In this lesson, you'll learn how to publish your library and validate that it published correctly.

Avatar
Alejandro

If you have issues publishing your package is because there's already a starwars-names package published, you should named it like yourname-startwars-names for example.

Avatar
Kent C.

Thanks for bringing that up @Alejandro. I would also recommend that if people are just following along, that instead of publishing a redundant starwars-names package, that you publish it as a scoped module: https://docs.npmjs.com/misc/scope

In reply to Alejandro
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?