Using npm install query-overpass on ubuntu 18.04 correctly installs query-overpass to /usr/local/lib/node_modules/query-overpass.
Running query-overpass --version results in the error /usr/bin/env: 'node\r': No such file or directory. The trailing \r being the result of windows line endings.
Converting /usr/local/lib/node_modules/query-overpass/cli.js to unix line endings using dos2unix fixes the issue, confirming the line endings are the issue.
Using
npm install query-overpass
on ubuntu 18.04 correctly installs query-overpass to/usr/local/lib/node_modules/query-overpass
.Running
query-overpass --version
results in the error/usr/bin/env: 'node\r': No such file or directory
. The trailing\r
being the result of windows line endings.Converting
/usr/local/lib/node_modules/query-overpass/cli.js
to unix line endings usingdos2unix
fixes the issue, confirming the line endings are the issue.