perliedman / query-overpass

Make queries to OpenStreetMap's overpass API and output as GeoJSON
ISC License
156 stars 33 forks source link

CLI Line-endings Causing Error on Ubuntu 18.04 #37

Closed ghost closed 5 years ago

ghost commented 5 years ago

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.

perliedman commented 5 years ago

Can't reproduce this on Ubuntu 19.04, so hopefully this was a temporary problem.

I'm closing this, but feel free to drop a comment if you think I should re-open.