如果你最初是通过 NPM 安装的 Azure Functions Core Tools,可以尝试以下步骤:打开终端(Terminal),输入以下命令卸载旧版本: npm uninstall -g azure-functions-core-tools