0

我尝试按照这个对 Node.js、Azure 和适用于 Node.js 的 Azure SDK 的非常基本的介绍进行操作

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

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 调用模拟器,所以我真的不知道从那里去哪里找出可能出了什么问题。我无法在谷歌上找到这个确切的错误,所以我有点卡住了。

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

4

3 回答 3

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

于 2013-01-30T22:48:09.483 回答
1

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

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

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

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

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

于 2013-01-30T23:04:27.140 回答
0

确保已安装Windows Azure SDK v1.8

于 2013-02-06T19:39:50.830 回答