Using npmAuthenticate@0 requires the working file to be either in the working directory of the agent or within a sub folder of the working directory. It's not noted in the docs but for me even now didn't authenticated the .npmrc file