- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Having problems in running simple sample codes such as LED blinking and Grove LCD display from Intel XDK IoT Edition on Windows 10.
I have refreshed the Ostro XT. This is the last part of error messages, suggesting that it is failing at node-gyp reguild command.
npm ERR! Linux 4.4.15-yocto-standard
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "rebuild"
npm ERR! node v4.4.1
npm ERR! npm v2.14.20
npm ERR! code ELIFECYCLE
npm ERR! mraa@0.7.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mraa@0.7.5 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the mraa package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs mraa
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls mraa
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/root/.node_app_slot/npm-debug.log
rebuild complete
Upload Complete
Not auto starting by request
I checked if node-gyp is installed and found it is not. So, I did the following:
npm install -g node-gyp
And now, Joule gives me this.
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.15-yocto-standard
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/root/.node_app_slot/node_modules/mraa
gyp ERR! node -v v4.4.1
gyp ERR! node-gyp -v v3.3.0
gyp ERR! not ok
npm ERR! Linux 4.4.15-yocto-standard
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "rebuild"
npm ERR! node v4.4.1
npm ERR! npm v2.14.20
npm ERR! code ELIFECYCLE
npm ERR! mraa@0.7.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mraa@0.7.5 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the mraa package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs mraa
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls mraa
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/root/.node_app_slot/npm-debug.log
rebuild complete
Upload Complete
Not auto starting by request
What can I do now? Perhaps uninstall/reinstall node and node-gyp with the same version number?
Thanks,
sorrow
- Tags:
- Intel® Node Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello welcomesorrow,
Thanks for reaching out!
This is an unexpected behavior which has never occurred to me. Therefore, I believe something might be wrong on the XDK's installation. So, I suggest you to try installing it again to see if that corrects this issue.
I also noted on the error log a line that mentions mraa 0.7.5. I believe this is because the XDK version is out of date as the version installed on Joule is 1.5.1 as you can see if you run the following Python script:
import mraa
mraa.getVersion()
Try installing the XDK and updating it to the latest version and let us know if this behavior persists.
-Peter.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello welcomesorrow,
Thanks for reaching out!
This is an unexpected behavior which has never occurred to me. Therefore, I believe something might be wrong on the XDK's installation. So, I suggest you to try installing it again to see if that corrects this issue.
I also noted on the error log a line that mentions mraa 0.7.5. I believe this is because the XDK version is out of date as the version installed on Joule is 1.5.1 as you can see if you run the following Python script:
import mraa
mraa.getVersion()
Try installing the XDK and updating it to the latest version and let us know if this behavior persists.
-Peter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Peter,
Thanks, I think you are right in that the problems was that the mraa installed on my Joule was a wrong one. I followed, however, precisely the instruction of Intel Developer Zone that was
# curl https://raw.githubusercontent.com/intel-iot-devkit/joule-code-samples/master/mraa-install.sh | sh
in this page
https://software.intel.com/en-us/updating-libraries-for-joule IoT - Installing and updating middleware libraries | Intel® Software
If there were any confusion of mraa, there is no way for us to know. It should be corrected on your github.
cheers,
sorrow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi welcomesorrow,
I understand your point completely. Thank you for providing us this feedback, I will make sure to pass it to the appropriate team.
Are you now able to run XDK normally?
Let me know.
-Peter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Peter,
Thanx for follow-up. I have installed Ubuntu 16.04.1 on my Joule and am happily playing around with PyCharm. As for XDK, I am facing a new problem of ssh connection to Joule from XDK IoT edition on Mac. I posted a new question about this. The ssh setup that worked for Ostro XT does not seem to work for Ubuntu. According to your suggestion, I confirmed the version of mraa as v1.5.1. Node.js is v6.9.1. XDK is 3641. Please kindly have a look at the thread 108577.
cheers,
sorrow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi welcomesorrow,
Thank you for letting us know!
Since this is a different question, we'll continue the support in the new thread (https://communities.intel.com/thread/108577 https://communities.intel.com/thread/108577).
-Peter.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page