I am confused…
We have build pipelines for several projects running on self-hosted build agents on a single server. All pipelines are setup the same:
- checkout from GIT
- install Node
- npm authenticate
- Build solution
- …
In all solutions nearly the same npm packages are referenced, maybe with some version differences. Two packages are coming from our own Azure DevOps feed. The .npmrc
of the solution is always pointing to our feed via https.
The builds all run with no problems.
I started now setting up a new server with new build agents. Certificates of the Azure DevOps server are installed. When I run the builds now on the new agents, one project is building and in all others I get the following error when npm install --ignorescripts
gets called:
npm install --ignore-scripts
npm ERR! code E401
npm ERR! Unable to authenticate, your authentication token seems to be invalid.
npm ERR! To correct this please trying logging in again with:
npm ERR! npm login
When I clone the repository manually on that server and run npm install
it works fine (I have added tokens to my users .npmrc
of course).
Does anyone have an idea where to look at?