【问题标题】:Hello World node.js for Azure not workingAzure 的 Hello World node.js 不工作
【发布时间】:2013-02-07 03:39:50
【问题描述】:

我已尝试关注this very basic introduction to Node.js, Azure and the Azure SDK for Node.js

一切都在按计划进行,直到我做到这一点:

PS C:\node\helloworld\WebRole1> Start-AzureEmulator -Launch

Creating local package...
Starting Emulator...
Start-AzureEmulator : The system cannot find the file specified
At line:1 char:20
+ Start-AzureEmulator <<<<  -Launch
    + CategoryInfo          : CloseError: (:) [Start-AzureEmulator], Win32Exce
   ption
    + FullyQualifiedErrorId : AzureDeploymentCmdlets.Cmdlet.StartAzureEmulator
   Command

我是 Node.js 的新手,并从 PowerShell 调用模拟器,所以我真的不知道从那里去哪里找出可能出了什么问题。我无法在 Google 上找到这个确切的错误,所以我有点卡住了。

有什么想法可以从这里开始吗?任何地方都有日志吗?

【问题讨论】:

    标签: node.js powershell azure azure-sdk-.net


    【解决方案1】:

    我能够在我的机器上对其进行测试并看到模拟器正在启动,因此它看起来像是 Windows Azure SDK 的安装问题。 您能否确保从“http://go.microsoft.com/fwlink/?LinkId=254279&clcid=0x409”正确安装了 SDK。 ◦安装适用于 Node.js 的 Windows Azure SDK:Windows 安装程序

    如果这没有帮助,procmon 日志可能会帮助您了解丢失的文件。 "http://technet.microsoft.com/en-us/sysinternals/bb896645"

    【讨论】:

    • 我已经从您提供的链接中安装了 SDK - 这是教程的一部分。将尝试获取 procmon 日志...
    • 感谢您的 procmon 提示。请参阅我在 Pats 帖子上的说明。
    【解决方案2】:

    这本身不是“节点”问题。该错误是指 PS 脚本未找到本地计算模拟器。

    你应该有一个模拟器目录@ C:\Program Files\Microsoft SDKs\Windows Azure\Emulator

    您还可以通过转到开始菜单 (Win7) 中的搜索框或 Win8 的搜索功能(向右滑动)来搜索模拟器。只需搜索关键字“模拟器”

    如果该目录不存在或为空,则可能表示 Azure SDK 未完全安装。

    如果模拟器配置正确,但您没有设置 webrole,则会收到不同的错误。就像是: Start-AzureEmulator : 服务定义 (*.csdef) 文件无效或为空

    拍拍

    【讨论】:

    • 我有 c:\Program Files\Microsoft SDKs\Windows Azure 和 c:\Program Files (x86)\Microsoft SDKs\Windows Azure。我还使用 Azure 模拟器开发了 .Net 应用程序……在 Windows 中搜索时,我找到了计算模拟器和存储模拟器。
    • 我确实有你说它应该在的模拟器,但它似乎不是它正在寻找它的地方。使用 procmon,我看到它实际上是在看这里:C:\Program Files\Windows Azure Emulator\emulator - 我尝试将它复制到该位置,现在它可以工作了。
    【解决方案3】:

    确保安装了Windows Azure SDK v1.8

    【讨论】:

      猜你喜欢
      • 2018-02-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-11
      • 2013-12-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多