node-opcua / opcua-commander

a opcua client with blessed (ncurses)
MIT License
211 stars 46 forks source link

Can not run on Ubuntu with Nodejs 6.14 #15

Closed mstfldmr closed 6 years ago

mstfldmr commented 6 years ago

I have Ubuntu 16.04, with node 6.14. I get the following error while starting:

ubuntu@ip-172-31-16-24:~$ opcua-commander -e opc.tcp://localhost:26543
/usr/bin/env: ‘node\r’: No such file or directory

Here is my environment:

ubuntu@ip-172-31-16-24:~$ which node
/usr/bin/node
ubuntu@ip-172-31-16-24:~$ ll /usr/bin/node*
-rwxr-xr-x 1 root root 30726190 Aug 15 13:15 /usr/bin/node*
lrwxrwxrwx 1 root root       24 Aug 20 09:56 /usr/bin/nodejs -> /etc/alternatives/nodejs*
lrwxrwxrwx 1 root root       13 Aug 20 09:59 /usr/bin/nodejs6.10 -> /usr/bin/node*
ubuntu@ip-172-31-16-24:~$ node -v
v6.14.4
ubuntu@ip-172-31-16-24:~$ uname -a
Linux ip-172-31-16-24 4.4.0-1066-aws #76-Ubuntu SMP Thu Aug 16 16:21:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/62854300-can-not-run-on-ubuntu-with-nodejs-6-14?utm_campaign=plugin&utm_content=tracker%2F32277473&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F32277473&utm_medium=issues&utm_source=github).

I can go to the installation folder and run with node command to connect to the locally running node-opcua, but it closes immediately:

root@ip-172-31-16-24:/usr/lib/node_modules/opcua-commander# pwd
/usr/lib/node_modules/opcua-commander
root@ip-172-31-16-24:/usr/lib/node_modules/opcua-commander# node index.js  -e opc.tcp://localhost:26543
erossignon commented 6 years ago

duplicates #8