Kalil Belgoumri
Kalil Belgoumri

Reputation: 21

"Failed to replace env in config: ${GITHUB_TOKEN}"

I have error to run yarn or other comand.

error An unexpected error occurred: "Failed to replace env in config: ${GITHUB_TOKEN}".

Error

when I enter the token everything works but when I reopen visual studio code I have to enter the token again.

Can you help thanks

Upvotes: 2

Views: 902

Answers (1)

AnonymousDev
AnonymousDev

Reputation: 1326

You can try setting the GITHUB_TOKEN environment variable. You can do so with the following command:

export GITHUB_TOKEN=<your-github-token>

Upvotes: 0

Related Questions