【发布时间】:2018-10-14 09:24:25
【问题描述】:
我在 Mac 上使用 npm 5 和 node 8 使用了 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 以获得良好的效果。
但是运行 npm i -g azure-functions-core-tools@1.0.9 或 npm i -g azure-functions-core-tools 会导致
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
我在两台 Mac 上遇到同样的情况
【问题讨论】:
-
奇怪,v1.0.9 的目标是 .net 框架,无法在 MAC 上运行。不知道根本原因。猜猜之前错过了运行时要求,并且在重新安装后已修复。
标签: azure azure-functions azure-functions-core-tools