Hello World node.js for Azure无法正常工作

时间:2013-01-30 13:32:36

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

我试图关注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上找到这个确切的错误,所以我有点卡住了。

任何想法从哪里开始?是否有任何日志?

3 个答案:

答案 0 :(得分: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

答案 1 :(得分:1)

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

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

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

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

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

专利

答案 2 :(得分:0)

确保已安装Windows Azure SDK v1.8