Private npm ( configuration

In your post, please share:

  • Whether you are bare or managed workflow
  • Your eas-cli version
  • What you have tried so far

I am using and that requires an npm registry that is detailed in docs. What i am struggling with is the suggested NPM_TOKEN config setup.

I have added a new .npmrc file in my route;


The *** is token. The docs suggest _authToken=${NPM_TOKEN}. When i get to run my build script, i get the following error locally (before it hits eas);

An unexpected error occurred: “Failed to replace env in config: ${NPM_TOKEN}”

This happens immediately after yarn run (v1.22.17)

this error you are seeing seems unrelated to eas. see node.js - NPM - Failed to replace env in config: ${NPM_TOKEN} - Stack Overflow