npm-add-repo Add a repository field to a package.json that doesn't have one. Install npm install -g npm-add-repo Use $ npm-add-repo