Deploying NodeJs Express Rest API to Windows 10 IoT

爷,独闯天下 提交于 2019-12-24 00:34:09

问题


Node noob, Windows 10 IoT noob, senior .net dev here. I've been able to get a few of the samples to work, even got an led on a breadboard to be controllable through a nodejs server. I am using the latest chakra core files and have all of the packages installed on my dev machine, which is pretty clean.

I am guessing its not able to install the packages that are specified in the packages.json file, here is the excerpt:

"express": "~4.0.0", "morgan": "~1.0.0", "mongoose": "~3.6.13", "body-parser": "~1.0.1"

If it is the packages, how does one go about deploying nodejs applications with packages to windows iot? I considered just copying the application to the iot device and starting it manually, no luck. I also need the ms assemblies that allow me to interface code with the gpio.

I am now trying to get a simple rest api to windows 10 iot, and am having some trouble. I followed this tutorial, and its working if I use the non Universal Windows template on my machine. However, when I try to use this template (Basic Node.js Express 4 Application (Universal Windows)), and make it into the same application, the app is deployed, but the debugger fails, looking at the debug section of the windows 10 iot device, I have the following: Report signature

Package Full Name : test.iot.nodejs.express.njsproj_1.0.0.0_arm__b4gtp05xzgr10 Application Name : praid:App Application Version : 10.0.10586.63 Application Timestamp : 568b3d9f Fault Module Name : ucrtbase.dll Fault Module Version : 10.0.10586.63 Fault Module Timestamp : 568b34eb Exception Offset : 000351ed Exception Code : c0000409 Exception Data : 00000005 EventTime

January 26, 2016 at 10:22:17 PM PST

Link to Watson bucket

133280376927 FriendlyEventName

Stopped working

AppName

test.iot.nodejs.express.njsproj_b4gtp05xzgr10!App

AppPath

C:\windows\system32\backgroundTaskHost.exe

来源:https://stackoverflow.com/questions/35064933/deploying-nodejs-express-rest-api-to-windows-10-iot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!