Skip to content

Commit

Permalink
Added some setup info for publishing to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeTschudi committed Mar 25, 2022
1 parent 44bf896 commit f138d3c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/Publishing to npmjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,17 @@ call npm deprecate "@esri/solution-velocity@%obsoleteVersion%" "obsolete" --otp=
call npm deprecate "@esri/solution-viewer@%obsoleteVersion%" "obsolete" --otp=%twoFactorCode%
call npm deprecate "@esri/solution-web-experience@%obsoleteVersion%" "obsolete" --otp=%twoFactorCode%
```

---

## Setup issues

### Publishing to npm

* Create an account on npmjs.com that's part of the esri organization ([npm instructions](https://docs.npmjs.com/creating-a-new-npm-user-account))
* Set up npm in Okta Verify ([npm instructions](https://docs.npmjs.com/configuring-two-factor-authentication))
* On your computer, run `npm login`, which asks you for your npm username, password, email, and a two-factor code
* Use `npm whoami` to verify that you're logged in

A token is created in your npm account.

0 comments on commit f138d3c

Please sign in to comment.