Access token not working #26869
-
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
package.json
.npmrc
C:/Users/user/.npmrc
|
Beta Was this translation helpful? Give feedback.
-
Hi @callumok2004,
This is the error is shows if you try to login using your GitHub username and password, rather than using a PAT at the password (username can be anything). There is another way to authenticate, which I think it better. Create an
You can then:
…or:
This way you can use the same I hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Hello, @jcansdale! I publish packages via yarn, so my npm interface is not configured. Could you please clarify why Or what do these strange squiggles mean after the equal sign? |
Beta Was this translation helpful? Give feedback.
-
Now the npmjs main page is serving json:
I’ll wait) |
Beta Was this translation helpful? Give feedback.
-
Zlatov:
In order to access GitHub Packages, users need to provide a Personal Access Token that has been created with the By creating a Alternatively you can add a similar entry to your user
I hope that makes sense! |
Beta Was this translation helpful? Give feedback.
Hi @callumok2004,
This is the error is shows if you try to login using your GitHub username and password, rather than using a PAT at the password (username can be anything).
There is another way to authenticate, which I think it better. Create an
.npmrc
file at the root of your repository like this:You can then:
…or: