Open kaimas50 opened 1 year ago
I'm having the same issue, As a workaround I've set npmAuthenticate to a specific earlier version,0.208.1, as below, this solves the problem for now.
- task: npmAuthenticate@0.208.1
inputs:
workingFile: 'frontend/.npmrc'
I'm seeing the same problem i.e. fails with npmAuthenticate@0 (0.218.0) but works with 0.208.1.
It was working with 0.218.0 on 3rd May. So a bit tricky.
My pipeline has a couple of other npm commands after it (install and lint). All work, but the post-job: npmAuthenticate fails with EACCESS: permission denied, open '/home/vsys/work/1/s/.npmrc
I think this is a duplicate of #18242
Confirming that changing npmAuthenticate@0 to npmAuthenticate@0.208.1 is a temporary solution.
Any update on this? just tried to run our pipeline for the first time in a while and having the same issue. will set the pipeline to use npmAuthenticate@0.208.1 for the time being
Hi all, I am trying to repro this issue and see npmAuthenticate 0.218.0 is working on my hosted ubuntu-latest. Are these failures on self-hosted ubuntu-latest machines? Is it failing in the npmAuthenticate step or the subsequent restore steps?
I've also just encountered the error, it occurred on the post-job clean up step. I need to run the NPM authenticate task before deploying to azure static web app.
We hae noticed that before deploying the Azure Static Web app the file had following rights:
-rw-r--r-- 1 vsts docker 1.4K Jan 29 13:50 .npmrc
After the deployment:
-rw-r--r-- 1 root root 1.4K Jan 29 13:50 .npmrc
Looks like the Azure Static Web app deployment changes the permission of the files.
Same thing for me: "I've also just encountered the error, it occurred on the post-job clean up step. I need to run the NPM authenticate task before deploying to azure static web app."
Installing packages via an azure artifacts feed works totally fine in the container and my build works as expected, but in the "Post Job" step I get as well:
EACCES: permission denied, open '/home/vsts/work/1/s/.npmrc'
My company configures this pipeline in the devops ui and not using a yaml file. When I go into the UI under here I check "Continue on error":
This allows the rest of the deployment to go through but now the pipeline results have warnings.
I can't set a specific version for "Npm Authenticate" in the UI:
Task name
npmAuthenticate
Task version
0.218.0
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
ubuntu-latest
Task log
Relevant log output
Aditional info