Prerequisites: Node.js with npm version 5.7.0+ (required for npm ci
to work)
- Either confirm that you have an npm account or create one (you'll need your username and password)
- Confirm you have set up two-factor authentication on your npm account or set it up
- Set up 2FA to protect
Authorization and Publishing
- Set up 2FA to protect
- Use a 2FA provider to complete your 2FA setup (1Password or Authy or Google Authenticator)
- This app will now provide you with a One-Time Password (OTP), every time you do a task that requires 2FA
- Login to the C4 npm account (see 1Password for details:
cloudfour-user
) - Go to the account settings for the
cloudfour
npm organization (notcloudfour-user
) - Go to the
Members
tab and useInvite Members
to invite yourself, using the npm username you had or just created - You may or may not need to logout and go to your account to accept the invite
- In the terminal, type
npm adduser <your_user_name>
, and enter:- Your username
- Your password
- Your email address
- A new OTP from your phone, once prompted
Once you are signed in, you should be ready to publish (see individual repos for per-repo publishing instructions)