成功全局安装后找不到 appcenter 命令
appcenter command not found after successful global install
npm install -g appcenter-cli
我用上面的命令安装了appcenter-cli。它已成功安装,但在使用 appcenter 命令时收到错误消息。说是'appcenter'无法识别
以下是完整的错误信息:
在 Windows CMD 提示符上:
'appcenter' is not recognized as an internal or external command,
operable program or batch file.
在 VS 代码终端上:
appcenter : The term 'appcenter' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling
of the name, or if a path was included, verify that the path is
correct and try again. At line:1 char:1
- appcenter
- CategoryInfo : ObjectNotFound: (appcenter:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
Windows 10
节点:14.15.2
看来批处理命令的执行环境设置不正确(例如,PATH中没有包含appcenter CLI的目录)
您可以尝试按照以下步骤进行修复:
https://helpdeskgeek.com/how-to/fix-not-recognized-as-an-internal-or-external-command/
npm install -g appcenter-cli
我用上面的命令安装了appcenter-cli。它已成功安装,但在使用 appcenter 命令时收到错误消息。说是'appcenter'无法识别
以下是完整的错误信息: 在 Windows CMD 提示符上:
'appcenter' is not recognized as an internal or external command, operable program or batch file.
在 VS 代码终端上:
appcenter : The term 'appcenter' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
- appcenter
- CategoryInfo : ObjectNotFound: (appcenter:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
Windows 10 节点:14.15.2
看来批处理命令的执行环境设置不正确(例如,PATH中没有包含appcenter CLI的目录)
您可以尝试按照以下步骤进行修复: https://helpdeskgeek.com/how-to/fix-not-recognized-as-an-internal-or-external-command/