Adding your NPM auth token

In order to be able to get access to the Falcon Platform packages, you will need to connect to our private npm registry.

You can do this using an authorisation token. You can get this from your admin panel or by contacting us.

To set up your token please follow these steps:

  1. Log in into https://npm.deity.io (you can use any email) using credentials provided by DEITY:
npm login --registry=https://npm.deity.io --scope=@deity
  1. Your ~/.npmrc file should contain your auth token.

Example:

@deity:registry=https://npm.deity.io/
//npm.deity.io/:_authToken=<YOUR_TOKEN>
Using Deity Cloud?

If you're using Deity Cloud and are logged into dcloud you can run dcloud project:npm-token to get your NPM token.

  1. To let Falcon Cloud use your NPM token for the deployments and keep your token outside of GIT, run the following command in your terminal.
dcloud build:var NPM_TOKEN "<YOUR_TOKEN>"
  1. To use the dcloud build variable, add a .npmrc file to the root folder of your project application (e.g. client/.npmrc and server/.npmrc) with the following content:
//npm.deity.io/:_authToken=${NPM_TOKEN}
@deity:registry=https://npm.deity.io/

Ask the community. #help

If you can't find what you're looking for, the answer might be on our community slack channel. Our team keep a close eye on this and will usually get back to you within a few hours, if not straight away. If you haven't created an account yet please sign up here slack.deity.io.