NodeJs On VoCore Works

Posts: 31
Joined: Tue Jan 06, 2015 5:19 am

Re: NodeJs On VoCore Works

Mon Aug 24, 2015 4:54 pm

This problem has happened due to a bug in Nodejs not responding to the "PREFIX" environment variable, and thats why the openwrt compiler complained about NPM not being valid. :roll:

This is why I never had a problem the first time I compiled it - I didn't use the ubuntu repository nodejs which is old.

To successfully compile, remove old nodejs and install the latest version like this:

Code: Select all

sudo tar -C /usr/local --strip-components 1 -xzf node-v0.12.7-linux-x64.tar.gz

Now when you compile the openwrt stuff it will work. The Makefile just uses the installed NPM to get the node packages, and any compiling is done via the cross compilers.

I have a working Docker image now, and will make a video blog on how to go from zero to hero in openwrt compiling. Should have something up in the next we days and will post in a new thread. I first want to change the Makefiles slightly because it puts all the node_modules in the lib directory and I'd prefer them in a node app directory for easy development. ;)

Return to VoCore & VoCore+Dock

Who is online

Users browsing this forum: No registered users and 3 guests