'vsce'不能被识别为内部或外部命令、可操作程序或批处理文件,”after npm i -g @vscode/vsce”

vshtjzan  于 2023-04-21  发布在  Vscode
关注(0)|答案(1)|浏览(216)

我刚刚使用npm install -g @vscode/vsce安装了vsce,但在成功安装cmd后显示此错误:“vsce”无法识别为内部或外部命令、可操作程序或批处理文件。
我已经运行cmd与管理员,因为当我尝试安装没有管理员它显示此错误:

npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path C:\Users\User\AppData\Roaming\npm\node_modules\@vscode\.vsce-q9bFjg86
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\Users\User\AppData\Roaming\npm\node_modules\@vscode\.vsce-q9bFjg86'
npm ERR!  [Error: EPERM: operation not permitted, mkdir 'C:\Users\User\AppData\Roaming\npm\node_modules\@vscode\.vsce-q9bFjg86'] {
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: 'C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\@vscode\\.vsce-q9bFjg86'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ChetanKK\AppData\Local\npm-cache\_logs\2023-03-05T05_06_01_324Z-debug-0.log

我想在市场上发布我的vscode主题

sz81bmfz

sz81bmfz1#

是的,我发现你的计算机的使用shuld是管理员为运行此命令我尝试在其他本地帐户,但这是固定的运行此命令在管理员帐户

相关问题