Package Registry
How to set up the rnue package registry
On this pageUsing the package registry
The JavaScript portion of rnue is packaged and distributed as scoped npm packages under the @rnue namespace. The package registry is hosted on npm.rnue.dev.
Using the package registry
To use react-native-unreal in a project you need to configure your package manager to use the rnue package registry for all the @rnue/* scoped packages.
Do you have credentials?
To work with the
rnuepackage registry, you will need a username and password. If you don't have one, please contact the team to request credentials to be provisioned for you.Login to the registry
npm login --registry=https://npm.rnue.dev/After running the above command, you will be prompted for your username and password.
The
logincommand will typically put the resulting authentication token in an.npmrcfile located in your operating system's user home directory (for example/home/johndoe/.npmrcon macOS orC:\Users\JohnDoe\.npmrcon Windows).You can ensure that the command properly persisted your token by checking the contents of the user
.npmrcfile. It should look something like this://npm.rnue.dev/:_authToken=YOUR_AUTH_TOKEN_HEREWhere
YOUR_AUTH_TOKEN_HEREis the actual authentication token you received from thelogincommand.Create an
.npmrcfileThe file must be placed in the root of your package or workspace. This
.npmrcfile needs to exist in the root of every package or workspace that usesreact-native-unreal..npmrcfile contents:@rnue:registry=https://npm.rnue.dev/Read the npm docs for more information on using
.npmrcfiles.Verify your configuration
If everything was set up correctly, you should be able to add a dependency to any
@rnue/*scoped package or run the@rnue/clicommand.The simplest way to make sure everything works is to run:
npx @rnue/cliThe terminal shows the following output:
│ ■ Please specify a command