Publishing to npm

Kent C. Dodds
InstructorKent C. Dodds

Share this video with your friends

Send Tweet

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.

Alejandro Nanez
Alejandro Nanez
~ 6 years ago

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.

Kent C. Dodds
Kent C. Doddsinstructor
~ 6 years ago

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