I'm trying to restore a NuGet package from an Azure Devops Artifact to my local installation as part of a gulpfile script.
However, I'm getting a
Response status code does not indicate success: 401 (Unauthorized).
with:
Unable to load the service index for source https://my-visualstudio-dot-com-npm-feed-here
I've tried creating a nugetauth.npmrc file with the following content:
registry=https://my-visualstudio-dot-com-npm-feed-here
always-auth=true
I then run:
vsts-npm-auth -config nugetauth.npmrc
to generate my new .npmrc file, which I then place in the same directory as my package.json and gulpfile.js files.
When I subsequently run my 'Nuget-restore' task from task runner (with "gulp-nuget-restore": "^0.7.0"), it's failing to authenticate to my feed. What am I missing?