目前我问这个问题的原因是命令提示符下的npm CLI服务器不允许我将主题注册到Visual Studio Code Marketplace。我做过VS Code网站上有关如何发布扩展阅读的教程。但是,当我在显示给我的cmd中键入个人访问令牌时,这就是我得到的:
>vsce login 'my publisher name'
#Error: Access Denied: 'Username' needs the following permission(s) on
#the resource /publisher name to perform this action: View user permissions
#on a resource
我尝试了几次,甚至还赋予了它对Azure DevOps中所有可访问组织的完全访问权限。为了供您参考,我的计算机在Windows 8.1上运行。
这是我尝试注册的package.json文件:
{
"name": "blacklady-code-workspace",
"displayName": "Black Lady Theme",
"description": "Modeled after the Black Lady from Sailor Moon R.",
"version": "0.0.1",
"publisher": "ayaimarion",
"repository": {
"url": "https://github.com/ZanJang/blacklady-theme-ver-0.0.1"
},
"engines": {
"vscode": "^1.30.0"
},
"categories": [
"Themes"
],
"contributes": {
"themes": [
{
"label": "Black Lady",
"uiTheme": "vs-dark",
"path": "./themes/Black Lady-color-theme.json"
}
]
}
}
如果我做错了什么,请告诉我。
我的Azure DevOps组织:https://dev.azure.com/ayamaki