- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi guys,
I downladed nodejs V5 from here: http://nodejs.org/dist/latest-v5.x/ Index of /dist/latest-v5.x/
and I have this issue
Can you can help me?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi neuberfran,
We are now running some tests and will let you know our results once we are done. From this list, https://nodejs.org/dist/ https://nodejs.org/dist/, could you please let us know which one you plan to install? From the image you shared I guess that it would be 5.12.0 (that's the one we are trying to install right now), but we just want to make sure we are right.
Regards,
-Pablo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Neuber,
I've been trying to solve the GYP error that's being shown when running ./configure, but I'm still no able to bypass it or avoid it. I've been running some tests and tried to install node-gyp using npm install –g node-gyp, first I encountered some issues with mraa so I proceeded to update my version of mraa and was able to move on with the process. However, when running node-gyp configure this message appeared "gyp: binding.gyp not found (cwd: /home/root/node-v5.12.0) while trying to load binding.gyp", so I tried to copy and paste one of the binding.gyp files from other module just to see what would happen, I ran into yet another error. Have you tried anything different so far?
Regards,
-Pablo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Yes, I'm trying but no success. Now I stay looking to this site: https://www.ics.com/blog/getting-started-mraa-raspberry-pi Getting Started with MRAA on the Raspberry Pi
This part (is this site) is interesting:
mkdir ~/Documents/IoT
cd ~/Documents/IoT
wget https://nodejs.org/dist/latest-v4.x/node-v4.4.1-linux-armv7l.tar.gz
tar -xvf node-v4.4.1-linux-armv7l.tar.gz
cd node-v4.4.1-linux-armv7l/
sudo cp -R * /usr/local/
But yocto image don't have /usr/local.
how to proceed? Do I have to create a service? How?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi neuberfran,
Unfortunately, this version is exclusive for the Raspberyy Pi 2 ARM 7 CPU, so this process won't help to install a newer version of nodejs on the Edison even if the /usr/local existed on the Edison. This is in fact a very similar process to the one I was using when trying to install nodejs on my Edison, except for the last part (sudo cp –R * /usr/local/) and the package being downloaded. Let us investigate a little bit more, and we will get back to you soon.
Regards,
-Pablo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
You can theoretically try the <...>-linux-x86 file, however depending on the compilation settings, which were used to build it, it may or may not work.
Actually, looking at Angular2 https://angular.io/docs/ts/latest/quickstart.html# !# prereq requirements, any 4.x version should be okay and Edison's Release 3.5 (current) image has 4.4.3, so you should be able to run your app without any hassles of installing or building your own Node.js version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi neuberfran,
I was unable to install a newer version of nodeJS on the Edison, but I would like to know if you were able to test with the version in the latest Edison image, as AlexT suggested. Have you tried with that version?
Regards,
-Pablo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi AlexT_Intel
Hi -Pablo
Now I have issues with npm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi neuberfran,
Did you run opkg update already? I already had npm installed on my Edison immediately after flashing the board, so I find your issue a little strange. Try with opkg install nodejs-npm if opkg update doesn't help.
Regards,
-Pablo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi AlexT_Intel
Hi -Pablo
root@neuberfran:/usr/share/mraa/examples/javascript# node -v
v4.4.3
root@neuberfran:/usr/share/mraa/examples/javascript# npm -v
2.15.1
Now I stay have issue to run javascript test app in intel edison. In python it's work.
I tried npm install -g mraa and other things:
root@edison:~# echo "src mraa-upm http://iotdk.intel.com/repos/2.0/intelgalactic http://iotdk.intel.com/repos/2.0/intelgalactic" > /etc/opkg/mraa-upm.conf
Downloading http://iotdk.intel.com/repos/2.0/intelgalactic/Packages http://iotdk.intel.com/repos/2.0/intelgalactic/Packages.
Updated list of available packages in /var/lib/opkg/iotkit.
Downloading http://iotdk.intel.com/repos/2.0/intelgalactic/Packages http://iotdk.intel.com/repos/2.0/intelgalactic/Packages.
Updated list of available packages in /var/lib/opkg/mraa-upm.
root@edison:~# opkg install mraa
Upgrading mraa from 0.8.0 to 0.9.0 on root.
Downloading http://iotdk.intel.com/repos/2.0/intelgalactic/mraa_0.9.0_i586.ipk http://iotdk.intel.com/repos/2.0/intelgalactic/mraa_0.9.0_i586.ipk.
Removing obsolete file /usr/lib/libmraa.so.0.8.0.
Removing obsolete file /usr/share/mraa/examples/python/uart.py.
Configuring mraa.
But don't worked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi neuber,
It seems like gyp is looking into non-existent directories on the Edison, that's why you're getting that error. I tried to find the /home/root/.node-gyp/4.4.3 folder and was unable to find it. There's not even a .node-gyp folder in root, the find command didn't provide any results either. For now I would suggest you to stick to the Python approach you mentioned before if you want to make it work.
Regards,
-Pablo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi AlexT_Intel
Hi -Pablo,
In addition according to this video:
https://www.youtube.com/watch?v=3Zx0xX8zjKg Curso Angular 2 (extra): Angular CLI: atualizando para versão RC5 (webpack) - YouTube
Will need node v6 and NPM 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi neuber,
I've trying to install the latest version but I'm getting the same issue as with version 5.12. I haven't tried to install NPM 3, but even if I am able to install it I would still need node 6 (according to the video you provided).
Do you have any inputs AlexT_Intel?
Regards,
-Pablo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Yes -Pablo
Today I installed mraa (opkg update / opkg install mraa) and I can now run Blink-IO.js
Now, I will try do my first angular 2 app to run in intel edison with node v4.4 and npm 2.15
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Neuber,
Please let us know how that goes. We'll be waiting for your results.
Regards,
-Pablo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Looks like the requirements page was updated to mention that Node 5.x.x is required to run their examples, so it may not work with 4.4.3 in the image any more, but neuberfran should try it out, maybe with different examples, it may be the case that examples on the official Angular page require 5.x, but Angula itself doesn't. It may actually be better for you to ask the Angular 2 developers themselves, neuberfran

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