Starting In A New Company? Think Npmrc And Git Name

How to configure your company’s npm Enterprise registry and provide your name for Git interactions

Photo by Max Rovensky on Unsplash

Setting your company’s npm Enterprise registry

npm config set registry https://registry.company.com:1234

Npmrc

npm i npmrc -g
npmrc -c client
npm config set registry https://registry.company.com:1234

Switch Between Profiles

npmrc default
npmrc client
 npmrcAvailable npmrcs:* defaultclient

Manual Configuration

 ls /Users/daviddalbusco/.npmrcs/default
/Users/daviddalbusco/.npmrcs/default
ls /Users/daviddalbusco/.npmrcs/client
/Users/daviddalbusco/.npmrcs/client
ls -ltr /Users/daviddalbusco/.npmrc
/Users/daviddalbusco/.npmrc -> /Users/daviddalbusco/.npmrcs/default

Setting Your Name In Git

[user]
email = david.dalbusco@company.com
name = David Dal Busco
git config --global user.name "David Dal Busco"
git config --global user.email "david.dalbusco@company.com"
git commit --amend --author=”David Dal Busco <david.dalbusco@company.com>”

Summary

Freelancer by day | Creator of DeckDeckGo by night | Organizer of the Ionic and IndieHackers Zürich Meetup

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store