lxd-webgui icon indicating copy to clipboard operation
lxd-webgui copied to clipboard

following setup steps .. error couldn't find node

Open bmullan opened this issue 8 years ago • 9 comments

$ git clone https://github.com/dobin/lxd-webgui.git $ cd lxd-webgui lxd-webgui$ bower install

gives an error about not finding "node"

system is ubuntu 16.04 x64

bmullan avatar Jan 22 '17 14:01 bmullan

The newer nodejs packages in ubuntu install as binary "nodejs", but usually these kind of projects expect a binary name "node".

Try symlinking your "nodejs" binary to "node"; e.g.:

ln -s `which nodejs` /usr/bin/node

dobin avatar Jan 23 '17 11:01 dobin

thanks I'll give that a try

brian

On Mon, Jan 23, 2017 at 6:57 AM, Dobin Rutishauser <[email protected]

wrote:

The newer nodejs packages in ubuntu install as binary "nodejs", but usually these kind of projects expect a binary name "node".

Try symlinking your "nodejs" binary to "node"; e.g.:

ln -s which nodejs /usr/bin/node

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dobin/lxd-webgui/issues/34#issuecomment-274470495, or mute the thread https://github.com/notifications/unsubscribe-auth/ABmtp3NJXSTGWcLbABhEOfcJ6KCs8CS_ks5rVJW8gaJpZM4LqZZu .

bmullan avatar Jan 24 '17 14:01 bmullan

Dobin

thinking about it.. your advice here might be a good NOTE to put into your github ReadMe file so others don't hit the same problem & get stuck.

just a thought.

brian

On Mon, Jan 23, 2017 at 6:57 AM, Dobin Rutishauser <[email protected]

wrote:

The newer nodejs packages in ubuntu install as binary "nodejs", but usually these kind of projects expect a binary name "node".

Try symlinking your "nodejs" binary to "node"; e.g.:

ln -s which nodejs /usr/bin/node

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dobin/lxd-webgui/issues/34#issuecomment-274470495, or mute the thread https://github.com/notifications/unsubscribe-auth/ABmtp3NJXSTGWcLbABhEOfcJ6KCs8CS_ks5rVJW8gaJpZM4LqZZu .

bmullan avatar Jan 24 '17 14:01 bmullan

fyi...creating the softlink didn't fix the error..

bmullan@lenovo-w540:~/lxd-webgui*$ sudo ln -s /usr/bin/nodejs /usr/bin/node*

bmullan@lenovo-w540:~/lxd-webgui*$ bower install*

/usr/bin/env: ‘node’: No such file or directory brian

On Tue, Jan 24, 2017 at 9:08 AM, brian mullan [email protected] wrote:

Dobin

thinking about it.. your advice here might be a good NOTE to put into your github ReadMe file so others don't hit the same problem & get stuck.

just a thought.

brian

On Mon, Jan 23, 2017 at 6:57 AM, Dobin Rutishauser < [email protected]> wrote:

The newer nodejs packages in ubuntu install as binary "nodejs", but usually these kind of projects expect a binary name "node".

Try symlinking your "nodejs" binary to "node"; e.g.:

ln -s which nodejs /usr/bin/node

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dobin/lxd-webgui/issues/34#issuecomment-274470495, or mute the thread https://github.com/notifications/unsubscribe-auth/ABmtp3NJXSTGWcLbABhEOfcJ6KCs8CS_ks5rVJW8gaJpZM4LqZZu .

bmullan avatar Jan 25 '17 21:01 bmullan

Hmm i'm not a node expert, maybe this helps you?

https://github.com/nodejs/node-v0.x-archive/issues/3911

And/or upgrade to a newer node version.

dobin avatar Feb 12 '17 16:02 dobin

Thx I'll read thru this...

On Feb 12, 2017 11:35 AM, "Dobin Rutishauser" [email protected] wrote:

Hmm i'm not a node expert, maybe this helps you?

nodejs/node-v0.x-archive#3911 https://github.com/nodejs/node-v0.x-archive/issues/3911

And/or upgrade to a newer node version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dobin/lxd-webgui/issues/34#issuecomment-279230164, or mute the thread https://github.com/notifications/unsubscribe-auth/ABmtp-3z2jHQAEE1rJS6wdweojtvGNuYks5rbzTLgaJpZM4LqZZu .

bmullan avatar Feb 12 '17 18:02 bmullan

I got it installed finally.

I uninstalled everything, rebooted, then reinstalled but during the reinstall I created the symlink.

Thanks for your help. Now I will have to try it out.

I've setup 3 LXD servers, 1 on AWS, 1 on Digital Ocean and one here.

They are all connected with a L2 full-mesh VPN (I'm using PeerVPN).

All of the server's LXD bridge lxdbr0 are all on the same IP subnet so any container I create on any of the servers can ping etc any LXD container on any of the other servers.

Next I am going to try using your lxd web-gui to see if I can manage all of them together.

Thanks again.

Brian

On Sun, Feb 12, 2017 at 1:34 PM, brian mullan [email protected] wrote:

Thx I'll read thru this...

On Feb 12, 2017 11:35 AM, "Dobin Rutishauser" [email protected] wrote:

Hmm i'm not a node expert, maybe this helps you?

nodejs/node-v0.x-archive#3911 https://github.com/nodejs/node-v0.x-archive/issues/3911

And/or upgrade to a newer node version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dobin/lxd-webgui/issues/34#issuecomment-279230164, or mute the thread https://github.com/notifications/unsubscribe-auth/ABmtp-3z2jHQAEE1rJS6wdweojtvGNuYks5rbzTLgaJpZM4LqZZu .

bmullan avatar Feb 12 '17 21:02 bmullan

Awesome. Interesting setup.

Sadly support for multiple LXD servers is not currently implemented.

dobin avatar Feb 15 '17 10:02 dobin

Issue for multiple servers: #37

dobin avatar Feb 15 '17 10:02 dobin