Follow these instructions to publish and subsequently install the module in your project.
# Initialize with git
git init
git add .
git commit -m "Initial commit"
git push [git-url]
# Install in project from git
npm install [git-url] --save
# Link module globally
npm link
# Link in project to local module
npm link yaas-api-oauth-2-v1
Note: You should publish it before you use it publicly.
# Publish to npm
npm publish
# Install from npm
npm install yaas-api-oauth-2-v1 --save