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

Configuring npm and creating a package.json

Configuring npm and creating a package.json

5:01
In this lesson, you'll learn how to set up your machine to publish to [npm](https://www.npmjs.com/) so people can install your library. You'll configure some helpful defaults and use those to create a `package.json` file for your project using `npm init`.
Watch this lesson now
Avatar
egghead.io

In this lesson, you'll learn how to set up your machine to publish to npm so people can install your library. You'll configure some helpful defaults and use those to create a package.json file for your project using npm init.

Avatar
Yonatan

Great series - and very much needed.
I do have a question, which I can't find an answer to - how do I edit the .npmrc file? I've made a mistake and added init-npm-auth instead of author. I can't find the file anywhere in my project.

In reply to egghead.io
Avatar
Yonatan

Ok, I've found the answer...
npm config rm

In reply to Yonatan
Avatar
Kent C.

Note, you can also simply edit the file. It should be located in your home directory :-)

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