Closed robertopc closed 6 years ago
That is super weird. Can you give more details on how to reproduce this error?
I created a new virtual machine with the Lubuntu 16.04.1*. And the steps to reproduce are the follow:
1 - sudo apt update
2 - sudo apt install nodejs -y
3 - sudo apt install npm -y
4 - sudo npm install -g @rafaelrinaldi/whereami
5 - whereami
roberto@vb:~$ whereami
/usr/bin/env: ‘node’: No such file or directory
To work around:
1 - sudo apt install nodejs-legacy 2 - whereami
roberto@vb:~/njs$ whereami -h
Usage: whereami [OPTIONS]
Get your geolocation information using freegeoip.net from the CLI
Example:
$ whereami
-23.4733,-46.6658
$ whereami --f human
San Francisco, CA, United States
Options:
-v --version Display current software version
-h --help Display help and usage details
-f --format Output format (either human, json or sexagesimal)
-r --raw Output raw data from freegeoip.net
* A fix, the version of my Lubuntu is 16.04.1.
Thank you, I'll look into it as soon as I can.
@robertopc I'm working on upgrading this project to use a more modern version of Node which should fix this issue. I will update this as soon as I do it.
@robertopc The new release should solve this issue you were experiencing. I've changed the way binaries are distributed and compiled.
I'm gonna close the issue but feel free to open again if you still see problems.
I had this error in my Linux distribution Lubuntu 16.04.3. To work around this error, I had to install 'nodejs-legacy'. Maybe you can verify if legacy nodejs is installed.