简体   繁体   中英

How to fix “ Access Denied to perform this action: View user permissions on a resource” while publishing my custom vscode extension

I have written a vs-code extension and I packaged it successfully, but I had beaten by an error while publishing it.

$ vsce publish... ... Access Denied: Srikanth Bhamidipalli needs the following permission(s) on the resource /Srikanth to perform this action: View user permissions on a resource

I expect it should publish.

This happened to me when the name of my publisher didn't match the publisher in my package.json file.

I created my publisher online using my web browser and the publisher ID was PetrHudeek. With vsce , I logged in using my personal access token to an account with that publisher, but my package.json file had hudecekpetr as the publisher.

Make sure that the value of the key publisher in your package.json matches your publisher ID online (the string after https://marketplace.visualstudio.com/manage/publishers/ in the URL).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM