PAT token in .npmrc #241
-
Hey, I added my PAT token in .npmrc file, but as soon as I run "npm ci" I am getting an error. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Try putting //npm.pkg.github.com/:_authToken=<YOUR_GITHUB_AUTH_TOKEN> in your I'm not sure what adding an On Windows, the |
Beta Was this translation helpful? Give feedback.
-
Hii @kirtanchandak, Is this solution worked for you ?? platform: Ubuntu 22.04 .1 LTS When I was setting the local environment using Docker I also got similar error, and the above stated solution by @meganindya is not worked for me ?? & The versions that I getting from building the Compose Image form Docker File is: Not getting which is mentioned in the Development documentation Can you please give me Information about the current versions that Musicblocks V4 is using ?? |
Beta Was this translation helpful? Give feedback.
-
I can see npm ERR! 401 Unauthorized - GET https: //npm.pkg.github.com/dow.... - authentication token not provided So, it seems you don't have your PAT in the I tried to replicate it. In the first attempt, I removed the PAT from my local machine's In the second attempt, I added the PAT in my docker container's I found that you don't necessarily need to add your PAT in the docker container's echo "//npm.pkg.github.com/:_authToken=<YOUR_PAT>" >> ~/.npmrc |
Beta Was this translation helpful? Give feedback.
I can see
npm ERR! 401 Unauthorized - GET https: //npm.pkg.github.com/dow.... - authentication token not provided
So, it seems you don't have your PAT in the
~/.npmrc
file in your local machine or inside the docker container.I tried to replicate it.
In the first attempt, I removed the PAT from my local machine's
~/.npmrc
and as expected, it throws a 401 error.In the second attempt, I added the PAT in my docker container's
~/.npmrc
and it succeeds.I found that you don't necessarily need to add your PAT in the docker container's
~/.npmrc
if you have that in your local machine's~/.npmrc
. However, if it doesn't work for you, add it after opening your docker container.