azure-functions-cli:func init spits错误“No such file or directory”
我使用以下URl安装了7.x NoodeJs, https://github.com/nodesource/distributions
# Using Ubuntu curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - sudo apt-get install -y nodejs
如链接https://blogs.msdn.microsoft.com/appserviceteam/2016/12/01/running-azure-functions-locally-with-the-cli/中所述 ,安装了azure-functions-cli,
npm i -g azure-functions-cli
现在,当我运行“func init”时,出现以下错误:$ func init:没有这样的文件或目录
然后我尝试按照以下方式运行,仍然出现错误,
$ node /usr/lib/node_modules/azure-functions-cli/lib/main.js init events.js:161 throw er; // Unhandled 'error' event ^ Error: spawn mono /usr/lib/node_modules/azure-functions-cli/bin/func.exe ENOENT at exports._errnoException (util.js:1023:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32) at onErrorNT (internal/child_process.js:359:16) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickCallback (internal/process/next_tick.js:98:9) at Module.runMain (module.js:607:11) at run (bootstrap_node.js:418:7) at startup (bootstrap_node.js:139:9) at bootstrap_node.js:533:3
我也尝试安装单声道,并重新运行命令,也没有帮助。 我使用以下URL中的说明来安装Mono,Install Mono, http://www.mono-project.com/docs/getting-started/install/linux/
AzurefunctionCLI在Windows以外的平台上不起作用。 我不知道为什么你得到这样一个糟糕的错误信息,但是。
有一个CLI的实验端口在Mono上运行,但是你需要自己构build这个项目。 另外,它不支持JavaScriptfunction。 该代码位于https://github.com/Azure/azure-functions-cli/tree/mono-support 。
- 我可以从Azurefunction的单个运行中排列多个项目吗?
- 使用Bot FrameworkloggingNode.js-Azure应用程序
- 在Node.js中访问Azure ServiceConfiguration设置
- 在NodeJS应用程序中显示来自AlwaysEncrypted列的数据?
- 使用Azure App Services在指定的PORT上承载nodeJS net.Server
- AngularJS强制Firefox / Safari下载文件,而不是在浏览器中打开
- 使用节点sdk进行Azurevalidation时出错:
- Node.js在本地工作,但远程返回“不良请求”
- Socket.io + Azurenetworking套接字问题