如何为Azure IoT安装gulp工具?

时间:2017-04-05 11:43:36

标签: azure gulp azure-iot-hub azure-iot-sdk

我正在关注Adafruit羽毛的第一个教程(闪烁的例子)并且一直坚持这一步:

运行以下命令为您的Arduino开发板安装Azure IoT Hub SDK:

gulp install-tools

我收到以下错误,我不知道如何解决它:

[16:26:50] Using gulpfile D:\PROJEKTI\NavIoT\gitSamples\iot-hub-c-feather-m0-ge
ting-started-master\Lesson1\gulpfile.js
[16:26:50] Starting 'install-tools'...
[16:26:50] Starting 'install-tools-java'...
[16:26:50] Finished 'install-tools-java' after 106 us
[16:26:50] Starting 'install-tools-arduino'...
 ... package 'arduino-1.6.11-windows.zip' already installed...
[16:26:50] Finished 'install-tools-arduino' after 711 us
[16:26:50] Starting 'install-tools-arduino-init-libraries'...
events.js:160
    throw er; // Unhandled 'error' event
      ^

Error: spawn C:\Users\Darko ENOENT
    at exports._errnoException (util.js:1018:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onerror.NT (internal/child_process.js:367:16)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)
    at Module.runMain (module.js:606:11)
    at run (bootstrap_node.js:393:7)
    at startup (bootstrap_node.js:150:9)
    at bootstrap_node.js:508:3

您是否知道这个问题的解决方案?

1 个答案:

答案 0 :(得分:1)

我们将为Arduino设备淘汰一大堆东西。快看看吧 https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-arduino-huzzah-esp8266-get-started,这是使用Arduino IDE的Adafruit Huzzah ESP8266的入门体验。 Gulp工具很方便,但很容易带来很多新问题。

然而,M0的新教程仍在编写中。 ETA可能会在下周举行。如果您对新的示例代码感兴趣,可以访问https://github.com/Azure-Samples/iot-hub-Feather-M0-WiFi-client-app