[英]Can we run azure functions locally in VSCode without admin rights
Whenever I tried to debug the azure functions locally in vscode, a dialog box appears and it asks to install azure function core tools.每当我尝试在 vscode 中本地调试 azure 函数时,都会出现一个对话框,它要求安装 azure 函数核心工具。
After installing, it throws an error as Unable to import azure.functions pylint(import-error).安装后,它会抛出错误 Unable to import azure.functions pylint(import-error)。
When I tried to debug one more time without modifying anything, it is asking to install azure function core tools again.当我尝试在不修改任何内容的情况下再次调试时,它要求再次安装 azure 函数核心工具。 I don't understand why it is asking multiple times to install azure function core tools and also also why it is throwing error as could not import azure.functions.
我不明白为什么它多次要求安装 azure 函数核心工具,也不明白为什么它会抛出无法导入 azure.functions 的错误。 Please help on this.
请帮忙解决这个问题。
I am trying the above steps as a local user.我正在以本地用户身份尝试上述步骤。 If I tried to do using admin user, it is working.
如果我尝试使用管理员用户来做,它正在工作。
Try just type "func" in and see if it works (as local user).尝试只输入“func”,看看它是否有效(作为本地用户)。 If that won't display the Azure Functions logo, try installing it manually with -g parameter:
如果这不会显示 Azure Functions 徽标,请尝试使用 -g 参数手动安装它:
npm install -g azure-functions-core-tools
I had the same problem, VSCode was trying to install Azure Functions Core Tools each time I started debugging.我遇到了同样的问题,每次我开始调试时,VSCode 都试图安装 Azure Functions Core Tools。 So installed the latest Azure Functions Core Tools using MSI installer .
因此使用 MSI 安装程序安装了最新的 Azure Functions Core Tools。
npm uninstall -g azure-functions-core-tools
.npm uninstall -g azure-functions-core-tools
。 Not sure this step is 100% needed.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.