Are you trying to install the NPM module into the XDK, right?
Are you sure you installed all its dependencies? I mean NPM needs debug to work and debug at the same time needs ms, so, did you installed them as well?
thank you for your answer. Yes I'm trying to install the NPM module into the XDK. Based on your suggestion I changed my package.json file as follow:
Unfortunately I got the same “Error installing NPM module. Unsupported” when I use in the XDK IDE the “install/build button”.
I'm new to nodejs and XDK and maybe I missing something. For sure a better diagnostic message from XDK will help to find the problem.
Can you help me please?
I have the problem too. I found "node_modules" folder in the XDK install folder, and I tried to copy "bleno" folder into "node_modules" in my computer. In addition, I edited the package.json in XDK folder (add bleno), but it still didn't work. When I build, I got the warning “Error installing NPM module. Unsupported”.
I haven't access to the Edison now. I'll try to remember my workaround.
- Log on the Edison and change the directory to "/node_app_slot"
- Follow this article: http://rexstjohn.com/configure-intel-edison-for-bluetooth-le-smart-development/ to install bleno and all the workarounds to enable the BLE stack.
- Add the to your XDK package.json file the dependencies, something like:
4. To upload your project to Edison use the “upload button” in the XDK IDE instead of “install/build button”.
Please let me know if this is working for you.
After install bleno in Edison, if I use "upload button", it can work. But if I use "install/build" button, it failed.
Is there any method that can install bleno in the project without warning?
I'm happy to know that the workaround was successful also in your environment.
I don't know how to install bleno in the project without warning, this is why I did this post. Unfortunately the solution of Peter didn't work for me or maybe I need to to do something more.
I'd like to see an official Intel guide about BLE, like the Intel® Edison Bluetooth* Guide referred in the Native Application Guide doc, but I didn't find it.
I think it is the problem of Intel XDK Iot Edition, I also try to edit "package.json" in the following way, but still have problems when I build the project.
I think understood the problem. I suggest a better diagnostic from XDE will help to understand the problem immediately, at least for a node.js newbe like me.
With the latest SDK (0128) I got “Error installing NPM module. Unsupported” when I use in the XDK IDE the “install/build button” to upload my project that has bleno module into the dependencies section of package.json file.
This happens if the build settings the option "Run npm install directly on IOT device it is not enabled/checked, if the option is enabled the bleno package install without problem. Looking at the console output I can see that bleno requires native code compilation (that must be done on the target OS).
I suggest to enhance XDK error message from “Error installing NPM module. Unsupported” to “Error installing NPM module. Please enable build settings option: Run npm install directly on IOT device"
I hope this could help other users.