Mac OS上的azure-functions-core-tools [英] azure-functions-core-tools on Mac OS
问题描述
我在使用npm 5和node 8的Mac上使用了azure-functions-core-tools NPM软件包,但是我得到了警告,因此我将node更新为v8.11.1,将npm更新为5.6.0.完成此操作后,我安装了 brew reinstall azure-functions-core-tools
和 .NET Core SDK
2.1.105,是一个很好的方法.
I've used azure-functions-core-tools NPM package on a Mac using npm 5 and node 8, however I've got warnings, so I've updated node to v8.11.1 and npm to 5.6.0. After doing this I've installed brew reinstall azure-functions-core-tools
and .NET Core SDK
2.1.105 for good measure.
但是运行 npm i -g azure-functions-core-tools@1.0.9
或 npm i -g azure-functions-core-tools
会导致>
However running npm i -g azure-functions-core-tools@1.0.9
or npm i -g azure-functions-core-tools
results in
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for azure-functions-core-tools@1.0.12: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm ERR! notsup Valid OS: win32
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: darwin
npm ERR! notsup Actual Arch: x64
其他人有这个问题吗?Mac OS 10.12.6
Does anyone else has this issue? Mac OS 10.12.6
我在两台Mac电脑上的情况相同
I have same situation on two macs
我什至在终端窗口中找到以前安装的azure-functions-core-tools
I even found previous install of azure-functions-core-tools in a terminal window
推荐答案
对于Mac OS,您应使用 npm i -g azure-functions-core-tools @ core
安装Azure函数核心工具2.x,可以跨平台. azure-functions-core-tools
是1.x,只能在Windows上运行.
For Mac OS, you should use npm i -g azure-functions-core-tools@core
to install Azure function core tools 2.x, which can be cross-platform. azure-functions-core-tools
is 1.x and can only run on Windows.
更新
npm i -g azure-functions-core-tools
现在也用于安装2.x核心工具, azure-functions-core-tools @ 1
是1.x.有关最新命令,请参见文档.
npm i -g azure-functions-core-tools
now is also used to install 2.x core tools, azure-functions-core-tools@1
is 1.x. See docs for latest command.
这篇关于Mac OS上的azure-functions-core-tools的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!