New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed at install #34

Closed
engragy opened this Issue Nov 7, 2017 · 18 comments

Comments

Projects
None yet
2 participants
@engragy

engragy commented Nov 7, 2017

Hi Plepe,
i am trying to install your amazing openstreetbrowser to a server of mine to test if i can make it work with my tile server
i have already installed overpass api and osm (v0.6) api.
but when iam tring to install openstreet with the instructions https://github.com/plepe/OpenStreetBrowser/blob/master/README.md
it gives error on npm install

api@overpass:/browser$ git clone https://github.com/plepe/openstreetbrowser.gitCloning into 'openstreetbrowser'...
remote: Counting objects: 24153, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 24153 (delta 43), reused 59 (delta 38), pack-reused 24081
Receiving objects: 100% (24153/24153), 4.36 MiB | 1.44 MiB/s, done.
Resolving deltas: 100% (17264/17264), done.
Checking connectivity... done.
api@overpass:
/browser$ cd openstreetbrowser/
api@overpass:~/browser/openstreetbrowser$ npm install
npm WARN deprecated i18next-client@1.11.4: you can use npm install i18next from version 2.0.0
npm WARN deprecated husl@5.0.3: Project renamed to HSLuv
npm WARN deprecated geojsonhint@1.2.1: This module is now under the @mapbox namespace: install @mapbox/geojsonhint instead
npm WARN deprecated geojson-area@0.1.0: This module is now under the @mapbox namespace: install @mapbox/geojson-area instead
npm WARN prefer global jsonlint-lines@1.7.1 should be installed with -g

nodent-runtime@3.0.4 install /home/api/browser/openstreetbrowser/node_modules/nodent-runtime
node build.js

sh: 1: node: not found
openstreetbrowser@0.0.0 /home/api/browser/openstreetbrowser
├─┬ async@2.6.0
│ └── lodash@4.17.4
├─┬ browserify@14.5.0
│ ├── assert@1.4.1
│ ├─┬ browser-pack@6.0.2
│ │ ├─┬ combine-source-map@0.7.2
│ │ │ ├── convert-source-map@1.1.3
│ │ │ ├── inline-source-map@0.6.2
│ │ │ └── lodash.memoize@3.0.4
│ │ ├─┬ JSONStream@1.3.1
│ │ │ └── jsonparse@1.3.1
│ │ └── umd@3.0.1
│ ├─┬ browser-resolve@1.11.2
│ │ └── resolve@1.1.7
│ ├─┬ browserify-zlib@0.2.0
│ │ └── pako@1.0.6
│ ├─┬ buffer@5.0.8
│ │ ├── base64-js@1.2.1
│ │ └── ieee754@1.1.8
│ ├── cached-path-relative@1.0.1
│ ├─┬ concat-stream@1.5.2
│ │ ├─┬ readable-stream@2.0.6
│ │ │ └── string_decoder@0.10.31
│ │ └── typedarray@0.0.6
│ ├─┬ console-browserify@1.1.0
│ │ └── date-now@0.1.4
│ ├── constants-browserify@1.0.0
│ ├─┬ crypto-browserify@3.12.0
│ │ ├─┬ browserify-cipher@1.0.0
│ │ │ ├─┬ browserify-aes@1.1.1
│ │ │ │ └── buffer-xor@1.0.3
│ │ │ ├─┬ browserify-des@1.0.0
│ │ │ │ └── des.js@1.0.0
│ │ │ └─┬ evp_bytestokey@1.0.3
│ │ │ └─┬ md5.js@1.3.4
│ │ │ └── hash-base@3.0.4
│ │ ├─┬ browserify-sign@4.0.4
│ │ │ ├── bn.js@4.11.8
│ │ │ ├── browserify-rsa@4.0.1
│ │ │ ├─┬ elliptic@6.4.0
│ │ │ │ ├── brorand@1.1.0
│ │ │ │ ├─┬ hash.js@1.1.3
│ │ │ │ │ └── inherits@2.0.3
│ │ │ │ ├── hmac-drbg@1.0.1
│ │ │ │ ├── minimalistic-assert@1.0.0
│ │ │ │ └── minimalistic-crypto-utils@1.0.1
│ │ │ └─┬ parse-asn1@5.1.0
│ │ │ └── asn1.js@4.9.2
│ │ ├── create-ecdh@4.0.0
│ │ ├─┬ create-hash@1.1.3
│ │ │ ├── cipher-base@1.0.4
│ │ │ └─┬ ripemd160@2.0.1
│ │ │ └── hash-base@2.0.2
│ │ ├── create-hmac@1.1.6
│ │ ├─┬ diffie-hellman@5.0.2
│ │ │ └── miller-rabin@4.0.1
│ │ ├── pbkdf2@3.0.14
│ │ ├── public-encrypt@4.0.0
│ │ ├── randombytes@2.0.5
│ │ └── randomfill@1.0.3
│ ├── defined@1.0.0
│ ├─┬ deps-sort@2.0.0
│ │ └─┬ JSONStream@1.3.1
│ │ └── jsonparse@1.3.1
│ ├── domain-browser@1.1.7
│ ├─┬ duplexer2@0.1.4
│ │ └─┬ readable-stream@2.3.3
│ │ ├── inherits@2.0.3
│ │ ├── isarray@1.0.0
│ │ └── string_decoder@1.0.3
│ ├── events@1.1.1
│ ├─┬ glob@7.1.2
│ │ ├── fs.realpath@1.0.0
│ │ ├─┬ inflight@1.0.6
│ │ │ └── wrappy@1.0.2
│ │ ├─┬ minimatch@3.0.4
│ │ │ └─┬ brace-expansion@1.1.8
│ │ │ ├── balanced-match@1.0.0
│ │ │ └── concat-map@0.0.1
│ │ ├── once@1.4.0
│ │ └── path-is-absolute@1.0.1
│ ├─┬ has@1.0.1
│ │ └── function-bind@1.1.1
│ ├── htmlescape@1.1.1
│ ├── https-browserify@1.0.0
│ ├── inherits@2.0.1
│ ├─┬ insert-module-globals@7.0.1
│ │ ├─┬ concat-stream@1.5.2
│ │ │ └─┬ readable-stream@2.0.6
│ │ │ ├── isarray@1.0.0
│ │ │ └── string_decoder@0.10.31
│ │ ├── is-buffer@1.1.6
│ │ ├─┬ JSONStream@1.3.1
│ │ │ └── jsonparse@1.3.1
│ │ ├─┬ lexical-scope@1.2.0
│ │ │ └── astw@2.2.0
│ │ └── process@0.11.10
│ ├─┬ JSONStream@1.3.1
│ │ ├── jsonparse@1.3.1
│ │ └── through@2.2.7
│ ├─┬ labeled-stream-splicer@2.0.0
│ │ ├── isarray@0.0.1
│ │ └─┬ stream-splicer@2.0.0
│ │ └─┬ readable-stream@2.3.3
│ │ ├── inherits@2.0.3
│ │ ├── isarray@1.0.0
│ │ └── string_decoder@1.0.3
│ ├─┬ module-deps@4.1.1
│ │ ├─┬ concat-stream@1.5.2
│ │ │ └── readable-stream@2.0.6
│ │ ├── detective@4.5.0
│ │ ├─┬ JSONStream@1.3.1
│ │ │ └── jsonparse@1.3.1
│ │ ├─┬ readable-stream@2.3.3
│ │ │ ├── inherits@2.0.3
│ │ │ ├── isarray@1.0.0
│ │ │ └── string_decoder@1.0.3
│ │ └─┬ stream-combiner2@1.1.1
│ │ └─┬ readable-stream@2.3.3
│ │ ├── inherits@2.0.3
│ │ ├── isarray@1.0.0
│ │ └── string_decoder@1.0.3
│ ├── os-browserify@0.3.0
│ ├─┬ parents@1.0.1
│ │ └── path-platform@0.11.15
│ ├── path-browserify@0.0.0
│ ├── process@0.11.10
│ ├── punycode@1.4.1
│ ├── querystring-es3@0.2.1
│ ├─┬ read-only-stream@2.0.0
│ │ └─┬ readable-stream@2.3.3
│ │ ├── inherits@2.0.3
│ │ ├── isarray@1.0.0
│ │ └── string_decoder@1.0.3
│ ├─┬ readable-stream@2.3.3
│ │ ├── core-util-is@1.0.2
│ │ ├── inherits@2.0.3
│ │ ├── isarray@1.0.0
│ │ ├── process-nextick-args@1.0.7
│ │ ├── safe-buffer@5.1.1
│ │ └── util-deprecate@1.0.2
│ ├─┬ resolve@1.4.0
│ │ └── path-parse@1.0.5
│ ├─┬ shasum@1.0.2
│ │ ├── json-stable-stringify@0.0.1
│ │ └── sha.js@2.4.9
│ ├─┬ shell-quote@1.6.1
│ │ ├── array-filter@0.0.1
│ │ ├── array-map@0.0.0
│ │ ├── array-reduce@0.0.0
│ │ └── jsonify@0.0.0
│ ├─┬ stream-browserify@2.0.1
│ │ └─┬ readable-stream@2.3.3
│ │ ├── inherits@2.0.3
│ │ ├── isarray@1.0.0
│ │ └── string_decoder@1.0.3
│ ├─┬ stream-http@2.7.2
│ │ ├── builtin-status-codes@3.0.0
│ │ ├─┬ readable-stream@2.3.3
│ │ │ ├── inherits@2.0.3
│ │ │ ├── isarray@1.0.0
│ │ │ └── string_decoder@1.0.3
│ │ └── to-arraybuffer@1.0.1
│ ├── string_decoder@1.0.3
│ ├─┬ subarg@1.0.0
│ │ └── minimist@1.1.1
│ ├─┬ syntax-error@1.3.0
│ │ └── acorn@4.0.13
│ ├─┬ through2@2.0.3
│ │ └─┬ readable-stream@2.3.3
│ │ ├── inherits@2.0.3
│ │ ├── isarray@1.0.0
│ │ └── string_decoder@1.0.3
│ ├─┬ timers-browserify@1.4.2
│ │ └── process@0.11.10
│ ├── tty-browserify@0.0.0
│ ├─┬ url@0.11.0
│ │ ├── punycode@1.3.2
│ │ └── querystring@0.2.0
│ ├── util@0.10.3
│ ├─┬ vm-browserify@0.0.4
│ │ └── indexof@0.0.1
│ └── xtend@4.0.1
├─┬ color-interpolate@1.0.2
│ ├─┬ color-parse@1.3.5
│ │ ├── color-name@1.1.3
│ │ └── is-plain-obj@1.1.0
│ ├─┬ color-space@1.15.0
│ │ └── husl@5.0.3
│ ├── lerp@1.0.3
│ └─┬ mumath@3.3.4
│ └── almost-equal@1.1.0
├── UNMET PEER DEPENDENCY country-language@^0.1.7
├── font-awesome@4.7.0
├── i18next-client@1.11.4
├── ip-location@1.0.1
├── leaflet@1.2.0
├── leaflet.locatecontrol@0.61.0
├── lodash.debounce@4.0.8 extraneous
├── moment@2.19.1
├─┬ opening_hours@3.5.0
│ ├── suncalc@1.8.0
│ └─┬ uglify-js@2.8.29
│ ├── source-map@0.5.7
│ ├── uglify-to-browserify@1.0.2
│ └─┬ yargs@3.10.0
│ ├── camelcase@1.2.1
│ ├─┬ cliui@2.1.0
│ │ ├─┬ center-align@0.1.3
│ │ │ ├─┬ align-text@0.1.4
│ │ │ │ ├── longest@1.0.1
│ │ │ │ └── repeat-string@1.6.1
│ │ │ └── lazy-cache@1.0.4
│ │ ├── right-align@0.1.3
│ │ └── wordwrap@0.0.2
│ ├── decamelize@1.2.0
│ └── window-size@0.1.0
├── openstreetbrowser-categories-main@0.0.1 (git+https://github.com/plepe/openstreetbrowser-categories-main.git#388a7eea190d7682d7a6b11d662dbf435ff9cc50)
├── openstreetmap-tag-translations@1.1.0 (git+https://github.com/plepe/openstreetmap-tag-translations.git#ac57a2e2b82f789ec63ae982d31baf9696838a85)
├─┬ overpass-layer@0.1.0 (git+https://github.com/plepe/overpass-layer.git#770e79ea98a1a27e9fb995f8062098a44e9ad07e)
│ ├─┬ boundingbox@0.1.0
│ │ └─┬ geojson-bounds@1.0.1
│ │ ├─┬ geojsonhint@1.2.1
│ │ │ ├── concat-stream@1.4.10
│ │ │ └─┬ jsonlint-lines@1.7.1
│ │ │ ├── JSV@4.0.2
│ │ │ └─┬ nomnom@1.8.1
│ │ │ ├─┬ chalk@0.4.0
│ │ │ │ ├── ansi-styles@1.0.0
│ │ │ │ ├── has-color@0.1.7
│ │ │ │ └── strip-ansi@0.1.1
│ │ │ └── underscore@1.6.0
│ │ └─┬ should@8.4.0
│ │ ├── should-equal@0.8.0
│ │ ├── should-format@0.3.2
│ │ └── should-type@0.2.0
│ ├── html-escape@2.0.0
│ ├─┬ overpass-frontend@0.3.0
│ │ ├─┬ @turf/difference@5.0.0
│ │ │ ├─┬ @turf/area@4.7.3
│ │ │ │ ├─┬ @mapbox/geojson-area@0.2.2
│ │ │ │ │ └── wgs84@0.0.0
│ │ │ │ └── @turf/meta@4.7.4
│ │ │ ├── @turf/helpers@5.0.1
│ │ │ ├── @turf/invariant@5.0.0
│ │ │ ├── @turf/meta@5.0.2
│ │ │ └── jsts-es@1.5.4
│ │ ├─┬ @turf/intersect@5.0.0
│ │ │ ├─┬ @turf/clean-coords@4.7.3
│ │ │ │ ├── @turf/helpers@4.7.3
│ │ │ │ └── @turf/invariant@4.7.3
│ │ │ └── @turf/truncate@5.0.0
│ │ ├── @turf/union@5.0.0
│ │ ├─┬ osmtogeojson@3.0.0-beta.2
│ │ │ ├─┬ concat-stream@1.0.1
│ │ │ │ └─┬ bops@0.0.6
│ │ │ │ ├── base64-js@0.0.2
│ │ │ │ └── to-utf8@0.0.1
│ │ │ ├─┬ geojson-numeric@0.2.0
│ │ │ │ └── concat-stream@1.0.1
│ │ │ ├─┬ geojson-rewind@0.2.0
│ │ │ │ ├── concat-stream@1.2.1
│ │ │ │ ├── geojson-area@0.1.0
│ │ │ │ └── minimist@0.0.5
│ │ │ ├─┬ htmlparser2@3.5.1
│ │ │ │ ├── domelementtype@1.3.0
│ │ │ │ ├── domhandler@2.2.1
│ │ │ │ ├── domutils@1.3.0
│ │ │ │ └── readable-stream@1.1.14
│ │ │ ├─┬ JSONStream@0.8.0
│ │ │ │ └── jsonparse@0.0.5
│ │ │ ├── optimist@0.3.7
│ │ │ ├── osm-polygon-features@0.9.2
│ │ │ ├─┬ tiny-osmpbf@0.1.0
│ │ │ │ ├─┬ pbf@3.1.0
│ │ │ │ │ └─┬ resolve-protobuf-schema@2.0.0
│ │ │ │ │ └── protocol-buffers-schema@2.2.0
│ │ │ │ └── tiny-inflate@1.0.2
│ │ │ └── xmldom@0.1.27
│ │ ├── quadtree-lookup@2.0.2 (git+https://github.com/petrbrzek/quadtree-lookup.git#a59816b40fec13397ed372f918f9beca33ed2698)
│ │ ├─┬ turf-bbox-clip@1.0.0 (git+https://github.com/Turfjs/turf-bbox-clip.git#5cfd8b5e0611acb09cead417ee8cb446ab2b0752)
│ │ │ ├── benchmark@1.0.0
│ │ │ ├── glob@5.0.15
│ │ │ ├── lineclip@1.1.5
│ │ │ └─┬ tape@4.8.0
│ │ │ ├── deep-equal@1.0.1
│ │ │ ├─┬ for-each@0.3.2
│ │ │ │ └── is-function@1.0.1
│ │ │ ├── glob@7.1.2
│ │ │ ├── inherits@2.0.3
│ │ │ ├── minimist@1.2.0
│ │ │ ├── object-inspect@1.3.0
│ │ │ ├─┬ resumer@0.0.0
│ │ │ │ └── through@2.3.8
│ │ │ ├── string.prototype.trim@1.1.2
│ │ │ └── through@2.3.8
│ │ ├── weight-sort@1.2.1
│ │ └── xmlhttprequest@1.8.0
│ └─┬ twig@1.10.5
│ ├── locutus@2.0.9
│ └─┬ walk@2.3.9
│ └── foreachasync@3.0.0
├─┬ query-string@5.0.1
│ ├── decode-uri-component@0.2.0
│ ├── object-assign@4.1.1
│ └── strict-uri-encode@1.1.0
├─┬ sheet-router@4.2.3
│ ├─┬ global@4.3.2
│ │ ├─┬ min-document@2.19.0
│ │ │ └── dom-walk@0.1.1
│ │ └── process@0.5.2
│ └── wayfarer@6.6.2
├─┬ standard@10.0.3
│ ├─┬ eslint@3.19.0
│ │ ├─┬ babel-code-frame@6.26.0
│ │ │ └── js-tokens@3.0.2
│ │ ├─┬ chalk@1.1.3
│ │ │ ├── ansi-styles@2.2.1
│ │ │ ├── escape-string-regexp@1.0.5
│ │ │ ├── has-ansi@2.0.0
│ │ │ ├── strip-ansi@3.0.1
│ │ │ └── supports-color@2.0.0
│ │ ├─┬ concat-stream@1.6.0
│ │ │ ├── inherits@2.0.3
│ │ │ └─┬ readable-stream@2.3.3
│ │ │ ├── isarray@1.0.0
│ │ │ └── string_decoder@1.0.3
│ │ ├─┬ debug@2.6.9
│ │ │ └── ms@2.0.0
│ │ ├─┬ doctrine@2.0.0
│ │ │ └── isarray@1.0.0
│ │ ├─┬ escope@3.6.0
│ │ │ ├─┬ es6-map@0.1.5
│ │ │ │ ├── d@1.0.0
│ │ │ │ ├── es5-ext@0.10.35
│ │ │ │ ├── es6-iterator@2.0.3
│ │ │ │ ├── es6-set@0.1.5
│ │ │ │ ├── es6-symbol@3.1.1
│ │ │ │ └── event-emitter@0.3.5
│ │ │ ├── es6-weak-map@2.0.2
│ │ │ └── esrecurse@4.2.0
│ │ ├─┬ espree@3.5.1
│ │ │ ├── acorn@5.2.1
│ │ │ └─┬ acorn-jsx@3.0.1
│ │ │ └── acorn@3.3.0
│ │ ├── esquery@1.0.0
│ │ ├── estraverse@4.2.0
│ │ ├── esutils@2.0.2
│ │ ├─┬ file-entry-cache@2.0.0
│ │ │ └─┬ flat-cache@1.3.0
│ │ │ ├── circular-json@0.3.3
│ │ │ ├─┬ del@2.2.2
│ │ │ │ ├─┬ globby@5.0.0
│ │ │ │ │ ├─┬ array-union@1.0.2
│ │ │ │ │ │ └── array-uniq@1.0.3
│ │ │ │ │ ├── arrify@1.0.1
│ │ │ │ │ └── glob@7.1.2
│ │ │ │ ├── is-path-cwd@1.0.0
│ │ │ │ ├─┬ is-path-in-cwd@1.0.0
│ │ │ │ │ └── is-path-inside@1.0.0
│ │ │ │ └─┬ rimraf@2.6.2
│ │ │ │ └── glob@7.1.2
│ │ │ └── write@0.2.1
│ │ ├── glob@7.1.2
│ │ ├── globals@9.18.0
│ │ ├── ignore@3.3.7
│ │ ├── imurmurhash@0.1.4
│ │ ├─┬ inquirer@0.12.0
│ │ │ ├── ansi-escapes@1.4.0
│ │ │ ├── ansi-regex@2.1.1
│ │ │ ├─┬ cli-cursor@1.0.2
│ │ │ │ └─┬ restore-cursor@1.0.1
│ │ │ │ ├── exit-hook@1.1.1
│ │ │ │ └── onetime@1.1.0
│ │ │ ├── cli-width@2.2.0
│ │ │ ├── figures@1.7.0
│ │ │ ├─┬ readline2@1.0.1
│ │ │ │ ├── code-point-at@1.1.0
│ │ │ │ ├─┬ is-fullwidth-code-point@1.0.0
│ │ │ │ │ └── number-is-nan@1.0.1
│ │ │ │ └── mute-stream@0.0.5
│ │ │ ├── run-async@0.1.0
│ │ │ ├── rx-lite@3.1.2
│ │ │ ├── string-width@1.0.2
│ │ │ └── through@2.3.8
│ │ ├─┬ is-my-json-valid@2.16.1
│ │ │ ├── generate-function@2.0.0
│ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ └── is-property@1.0.2
│ │ │ └── jsonpointer@4.0.1
│ │ ├─┬ is-resolvable@1.0.0
│ │ │ └── tryit@1.0.3
│ │ ├─┬ js-yaml@3.10.0
│ │ │ ├─┬ argparse@1.0.9
│ │ │ │ └── sprintf-js@1.0.3
│ │ │ └── esprima@4.0.0
│ │ ├── json-stable-stringify@1.0.1
│ │ ├─┬ levn@0.3.0
│ │ │ ├── prelude-ls@1.1.2
│ │ │ └── type-check@0.3.2
│ │ ├─┬ mkdirp@0.5.1
│ │ │ └── minimist@0.0.8
│ │ ├── natural-compare@1.4.0
│ │ ├─┬ optionator@0.8.2
│ │ │ ├── deep-is@0.1.3
│ │ │ ├── fast-levenshtein@2.0.6
│ │ │ └── wordwrap@1.0.0
│ │ ├── path-is-inside@1.0.2
│ │ ├── pluralize@1.2.1
│ │ ├── progress@1.1.8
│ │ ├─┬ require-uncached@1.0.3
│ │ │ ├─┬ caller-path@0.1.0
│ │ │ │ └── callsites@0.2.0
│ │ │ └── resolve-from@1.0.1
│ │ ├─┬ shelljs@0.7.8
│ │ │ ├── glob@7.1.2
│ │ │ ├── interpret@1.0.4
│ │ │ └── rechoir@0.6.2
│ │ ├── strip-bom@3.0.0
│ │ ├── strip-json-comments@2.0.1
│ │ ├─┬ table@3.8.3
│ │ │ ├─┬ ajv@4.11.8
│ │ │ │ ├── co@4.6.0
│ │ │ │ └── json-stable-stringify@1.0.1
│ │ │ ├── ajv-keywords@1.5.1
│ │ │ ├── slice-ansi@0.0.4
│ │ │ └─┬ string-width@2.1.1
│ │ │ ├── is-fullwidth-code-point@2.0.0
│ │ │ └─┬ strip-ansi@4.0.0
│ │ │ └── ansi-regex@3.0.0
│ │ ├── text-table@0.2.0
│ │ └─┬ user-home@2.0.0
│ │ └── os-homedir@1.0.2
│ ├── eslint-config-standard@10.2.1
│ ├── eslint-config-standard-jsx@4.0.2
│ ├─┬ eslint-plugin-import@2.2.0
│ │ ├── builtin-modules@1.1.1
│ │ ├── contains-path@0.1.0
│ │ ├─┬ doctrine@1.5.0
│ │ │ └── isarray@1.0.0
│ │ ├── eslint-import-resolver-node@0.2.3
│ │ ├─┬ eslint-module-utils@2.1.1
│ │ │ └── pkg-dir@1.0.0
│ │ ├── lodash.cond@4.5.2
│ │ └─┬ pkg-up@1.0.0
│ │ └─┬ find-up@1.1.2
│ │ ├── path-exists@2.1.0
│ │ └─┬ pinkie-promise@2.0.1
│ │ └── pinkie@2.0.4
│ ├─┬ eslint-plugin-node@4.2.3
│ │ └── semver@5.3.0
│ ├── eslint-plugin-promise@3.5.0
│ ├─┬ eslint-plugin-react@6.10.3
│ │ ├─┬ array.prototype.find@2.0.4
│ │ │ ├─┬ define-properties@1.1.2
│ │ │ │ └── foreach@2.0.5
│ │ │ └─┬ es-abstract@1.9.0
│ │ │ ├─┬ es-to-primitive@1.1.1
│ │ │ │ ├── is-date-object@1.0.1
│ │ │ │ └── is-symbol@1.0.1
│ │ │ ├── is-callable@1.1.3
│ │ │ └── is-regex@1.0.4
│ │ ├─┬ doctrine@1.5.0
│ │ │ └── isarray@1.0.0
│ │ ├── jsx-ast-utils@1.4.1
│ │ └─┬ object.assign@4.0.4
│ │ └── object-keys@1.0.11
│ ├── eslint-plugin-standard@3.0.1
│ └─┬ standard-engine@7.0.0
│ ├─┬ deglob@2.1.0
│ │ ├── find-root@1.1.0
│ │ ├── glob@7.1.2
│ │ ├─┬ pkg-config@1.1.1
│ │ │ └── debug-log@1.0.1
│ │ ├── run-parallel@1.1.6
│ │ └── uniq@1.0.1
│ ├── get-stdin@5.0.1
│ └─┬ pkg-conf@2.0.0
│ ├─┬ find-up@2.1.0
│ │ └─┬ locate-path@2.0.0
│ │ ├─┬ p-locate@2.0.0
│ │ │ └── p-limit@1.1.0
│ │ └── path-exists@3.0.0
│ └─┬ load-json-file@2.0.0
│ ├─┬ parse-json@2.2.0
│ │ └─┬ error-ex@1.3.1
│ │ └── is-arrayish@0.2.1
│ └── pify@2.3.0
└─┬ watchify@3.9.0
├─┬ anymatch@1.3.2
│ ├─┬ micromatch@2.3.11
│ │ ├─┬ arr-diff@2.0.0
│ │ │ └── arr-flatten@1.1.0
│ │ ├── array-unique@0.2.1
│ │ ├─┬ braces@1.8.5
│ │ │ ├─┬ expand-range@1.8.2
│ │ │ │ └─┬ fill-range@2.2.3
│ │ │ │ ├── is-number@2.1.0
│ │ │ │ ├─┬ isobject@2.1.0
│ │ │ │ │ └── isarray@1.0.0
│ │ │ │ └─┬ randomatic@1.1.7
│ │ │ │ ├─┬ is-number@3.0.0
│ │ │ │ │ └── kind-of@3.2.2
│ │ │ │ └── kind-of@4.0.0
│ │ │ ├── preserve@0.2.0
│ │ │ └── repeat-element@1.1.2
│ │ ├─┬ expand-brackets@0.1.5
│ │ │ └── is-posix-bracket@0.1.1
│ │ ├── extglob@0.3.2
│ │ ├── filename-regex@2.0.1
│ │ ├── is-extglob@1.0.0
│ │ ├── kind-of@3.2.2
│ │ ├─┬ object.omit@2.0.1
│ │ │ ├─┬ for-own@0.1.5
│ │ │ │ └── for-in@1.0.2
│ │ │ └── is-extendable@0.1.1
│ │ ├─┬ parse-glob@3.0.4
│ │ │ ├── glob-base@0.3.0
│ │ │ └── is-dotfile@1.0.3
│ │ └─┬ regex-cache@0.4.4
│ │ └─┬ is-equal-shallow@0.1.3
│ │ └── is-primitive@2.0.0
│ └─┬ normalize-path@2.1.1
│ └── remove-trailing-separator@1.1.0
├─┬ chokidar@1.7.0
│ ├── async-each@1.0.1
│ ├── glob-parent@2.0.0
│ ├─┬ is-binary-path@1.0.1
│ │ └── binary-extensions@1.10.0
│ ├── is-glob@2.0.1
│ └─┬ readdirp@2.1.0
│ ├── graceful-fs@4.1.11
│ ├─┬ readable-stream@2.3.3
│ │ ├── inherits@2.0.3
│ │ ├── isarray@1.0.0
│ │ └── string_decoder@1.0.3
│ └── set-immediate-shim@1.0.1
└── outpipe@1.1.1

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.2
npm WARN opening_hours@3.5.0 requires a peer of country-language@^0.1.7 but none was installed.
npm ERR! Linux 4.4.0-62-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! nodent-runtime@3.0.4 install: node build.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the nodent-runtime@3.0.4 install script 'node build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the nodent-runtime package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs nodent-runtime
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls nodent-runtime
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/api/browser/openstreetbrowser/npm-debug.log

is there some packages iam missing
please advise ...
i know you are too busy but any thing may help, and iam willing to help provide a newbie guide for people like me or any thing that may help others :)
good luck

@plepe

This comment has been minimized.

Show comment
Hide comment
@plepe

plepe Nov 7, 2017

Owner

Hmm, that's strange. Does the 'node' executable work? Above it says:
nodent-runtime@3.0.4 install /home/api/browser/openstreetbrowser/node_modules/nodent-runtime
node build.js
sh: 1: node: not found

I guess that's the problem.

Owner

plepe commented Nov 7, 2017

Hmm, that's strange. Does the 'node' executable work? Above it says:
nodent-runtime@3.0.4 install /home/api/browser/openstreetbrowser/node_modules/nodent-runtime
node build.js
sh: 1: node: not found

I guess that's the problem.

@plepe

This comment has been minimized.

Show comment
Hide comment
@plepe

plepe Nov 7, 2017

Owner

I just tested the installation, it works in my environment :-) I made a few small changes, which you should pull.

Owner

plepe commented Nov 7, 2017

I just tested the installation, it works in my environment :-) I made a few small changes, which you should pull.

@engragy

This comment has been minimized.

Show comment
Hide comment
@engragy

engragy Nov 10, 2017

hii plepe

i have trying for a couple of days to overcome these errors but with no luck
i was trying to install this on vm and now i am trying on old pc of mine, my os is ubuntu 16.04, npm -v3.10.10, node -v6.12.0

please see the latest error log and advise ...

api@overpass:~/openstreetbrowser$ npm install
npm WARN deprecated i18next-client@1.11.4: you can use npm install i18next from version 2.0.0
npm WARN deprecated husl@5.0.3: Project renamed to HSLuv
npm WARN deprecated geojsonhint@1.2.1: This module is now under the @mapbox namespace: install @mapbox/geojsonhint instead
npm WARN deprecated geojson-area@0.1.0: This module is now under the @mapbox namespace: install @mapbox/geojson-area instead
npm WARN prefer global jsonlint-lines@1.7.1 should be installed with -g

nodent-runtime@3.0.4 install /home/api/openstreetbrowser/node_modules/nodent-runtime
node build.js

Built /home/api/openstreetbrowser/node_modules/nodent-runtime/dist/index.js

openstreetbrowser@0.0.0 prepublish /home/api/openstreetbrowser
npm run build && npm run lint

openstreetbrowser@0.0.0 build /home/api/openstreetbrowser
browserify src/index.js -o dist/openstreetbrowser.js

openstreetbrowser@0.0.0 lint /home/api/openstreetbrowser
standard src/*.js

standard: Use JavaScript Standard Style (https://standardjs.com)
standard: Run standard --fix to automatically fix some problems.
/home/api/openstreetbrowser/src/CategoryBase.js:25:27: Identifier 'ui_lang' is not in camel case.
/home/api/openstreetbrowser/src/CategoryBase.js:26:34: Identifier 'ui_lang' is not in camel case.
/home/api/openstreetbrowser/src/CategoryOverpass.js💯7: 'showDetails' is not defined.
/home/api/openstreetbrowser/src/image.js:64:4: A space is required after ','.
/home/api/openstreetbrowser/src/image.js:132:4: A space is required after ','.
/home/api/openstreetbrowser/src/index.js:33:3: 'initState' is not defined.
/home/api/openstreetbrowser/src/index.js:43:40: 'initState' is not defined.
/home/api/openstreetbrowser/src/index.js:43:70: 'initState' is not defined.
/home/api/openstreetbrowser/src/index.js:202:11: 'showDetails' is not defined.
/home/api/openstreetbrowser/src/index.js:241:1: More than 1 blank line not allowed.
/home/api/openstreetbrowser/src/language.js:9:12: Identifier 'ui_lang' is not in camel case.
/home/api/openstreetbrowser/src/language.js:49:17: Identifier 'lang_str' is not in camel case.
/home/api/openstreetbrowser/src/language.js:68:34: Identifier 'lang_str' is not in camel case.
/home/api/openstreetbrowser/src/language.js:74:27: Identifier 'lang_str' is not in camel case.
/home/api/openstreetbrowser/src/language.js:83:23: Identifier 'ui_lang' is not in camel case.
/home/api/openstreetbrowser/src/language.js:114:50: Identifier 'old_options' is not in camel case.
/home/api/openstreetbrowser/src/options.js:1:38: 'showRootContent' is defined but never used.
/home/api/openstreetbrowser/src/options.js:31:25: A constructor name should not start with a lowercase letter.
/home/api/openstreetbrowser/src/options.js:63:5: Identifier 'old_options' is not in camel case.
/home/api/openstreetbrowser/src/options.js:63:5: 'old_options' is not defined.
/home/api/openstreetbrowser/src/options.js:68:38: 'old_options' is not defined.
/home/api/openstreetbrowser/src/wikipedia.js:101:5: Expected error to be handled.
/home/api/openstreetbrowser/src/wikipedia.js:299:10: 'i' is not defined.
/home/api/openstreetbrowser/src/wikipedia.js:299:17: 'i' is not defined.
/home/api/openstreetbrowser/src/wikipedia.js:299:34: 'i' is not defined.
/home/api/openstreetbrowser/src/wikipedia.js:300:22: 'i' is not defined.
/home/api/openstreetbrowser/src/wikipedia.js:310:104: Unnecessary escape character: /.

npm ERR! Linux 4.8.0-36-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "lint"
npm ERR! node v6.12.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! openstreetbrowser@0.0.0 lint: standard src/*.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openstreetbrowser@0.0.0 lint script 'standard src/.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the openstreetbrowser package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! standard src/
.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs openstreetbrowser
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls openstreetbrowser
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/api/openstreetbrowser/npm-debug.log

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"ia32"})
npm WARN opening_hours@3.5.0 requires a peer of country-language@^0.1.7 but none was installed.
npm ERR! Linux 4.8.0-36-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v6.12.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! openstreetbrowser@0.0.0 prepublish: npm run build && npm run lint
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openstreetbrowser@0.0.0 prepublish script 'npm run build && npm run lint'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the openstreetbrowser package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build && npm run lint
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs openstreetbrowser
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls openstreetbrowser
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/api/openstreetbrowser/npm-debug.log

could you please tell me the recommended environment.

engragy commented Nov 10, 2017

hii plepe

i have trying for a couple of days to overcome these errors but with no luck
i was trying to install this on vm and now i am trying on old pc of mine, my os is ubuntu 16.04, npm -v3.10.10, node -v6.12.0

please see the latest error log and advise ...

api@overpass:~/openstreetbrowser$ npm install
npm WARN deprecated i18next-client@1.11.4: you can use npm install i18next from version 2.0.0
npm WARN deprecated husl@5.0.3: Project renamed to HSLuv
npm WARN deprecated geojsonhint@1.2.1: This module is now under the @mapbox namespace: install @mapbox/geojsonhint instead
npm WARN deprecated geojson-area@0.1.0: This module is now under the @mapbox namespace: install @mapbox/geojson-area instead
npm WARN prefer global jsonlint-lines@1.7.1 should be installed with -g

nodent-runtime@3.0.4 install /home/api/openstreetbrowser/node_modules/nodent-runtime
node build.js

Built /home/api/openstreetbrowser/node_modules/nodent-runtime/dist/index.js

openstreetbrowser@0.0.0 prepublish /home/api/openstreetbrowser
npm run build && npm run lint

openstreetbrowser@0.0.0 build /home/api/openstreetbrowser
browserify src/index.js -o dist/openstreetbrowser.js

openstreetbrowser@0.0.0 lint /home/api/openstreetbrowser
standard src/*.js

standard: Use JavaScript Standard Style (https://standardjs.com)
standard: Run standard --fix to automatically fix some problems.
/home/api/openstreetbrowser/src/CategoryBase.js:25:27: Identifier 'ui_lang' is not in camel case.
/home/api/openstreetbrowser/src/CategoryBase.js:26:34: Identifier 'ui_lang' is not in camel case.
/home/api/openstreetbrowser/src/CategoryOverpass.js💯7: 'showDetails' is not defined.
/home/api/openstreetbrowser/src/image.js:64:4: A space is required after ','.
/home/api/openstreetbrowser/src/image.js:132:4: A space is required after ','.
/home/api/openstreetbrowser/src/index.js:33:3: 'initState' is not defined.
/home/api/openstreetbrowser/src/index.js:43:40: 'initState' is not defined.
/home/api/openstreetbrowser/src/index.js:43:70: 'initState' is not defined.
/home/api/openstreetbrowser/src/index.js:202:11: 'showDetails' is not defined.
/home/api/openstreetbrowser/src/index.js:241:1: More than 1 blank line not allowed.
/home/api/openstreetbrowser/src/language.js:9:12: Identifier 'ui_lang' is not in camel case.
/home/api/openstreetbrowser/src/language.js:49:17: Identifier 'lang_str' is not in camel case.
/home/api/openstreetbrowser/src/language.js:68:34: Identifier 'lang_str' is not in camel case.
/home/api/openstreetbrowser/src/language.js:74:27: Identifier 'lang_str' is not in camel case.
/home/api/openstreetbrowser/src/language.js:83:23: Identifier 'ui_lang' is not in camel case.
/home/api/openstreetbrowser/src/language.js:114:50: Identifier 'old_options' is not in camel case.
/home/api/openstreetbrowser/src/options.js:1:38: 'showRootContent' is defined but never used.
/home/api/openstreetbrowser/src/options.js:31:25: A constructor name should not start with a lowercase letter.
/home/api/openstreetbrowser/src/options.js:63:5: Identifier 'old_options' is not in camel case.
/home/api/openstreetbrowser/src/options.js:63:5: 'old_options' is not defined.
/home/api/openstreetbrowser/src/options.js:68:38: 'old_options' is not defined.
/home/api/openstreetbrowser/src/wikipedia.js:101:5: Expected error to be handled.
/home/api/openstreetbrowser/src/wikipedia.js:299:10: 'i' is not defined.
/home/api/openstreetbrowser/src/wikipedia.js:299:17: 'i' is not defined.
/home/api/openstreetbrowser/src/wikipedia.js:299:34: 'i' is not defined.
/home/api/openstreetbrowser/src/wikipedia.js:300:22: 'i' is not defined.
/home/api/openstreetbrowser/src/wikipedia.js:310:104: Unnecessary escape character: /.

npm ERR! Linux 4.8.0-36-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "lint"
npm ERR! node v6.12.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! openstreetbrowser@0.0.0 lint: standard src/*.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openstreetbrowser@0.0.0 lint script 'standard src/.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the openstreetbrowser package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! standard src/
.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs openstreetbrowser
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls openstreetbrowser
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/api/openstreetbrowser/npm-debug.log

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"ia32"})
npm WARN opening_hours@3.5.0 requires a peer of country-language@^0.1.7 but none was installed.
npm ERR! Linux 4.8.0-36-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v6.12.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! openstreetbrowser@0.0.0 prepublish: npm run build && npm run lint
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openstreetbrowser@0.0.0 prepublish script 'npm run build && npm run lint'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the openstreetbrowser package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build && npm run lint
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs openstreetbrowser
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls openstreetbrowser
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/api/openstreetbrowser/npm-debug.log

could you please tell me the recommended environment.

@plepe

This comment has been minimized.

Show comment
Hide comment
@plepe

plepe Nov 10, 2017

Owner

Oh, that looks good! You only have errors about lint (problems with coding style). Installation and building was successful ... it should work.

Owner

plepe commented Nov 10, 2017

Oh, that looks good! You only have errors about lint (problems with coding style). Installation and building was successful ... it should work.

@engragy

This comment has been minimized.

Show comment
Hide comment
@engragy

engragy Nov 11, 2017

hi plepe

i have ignored the errors as you suggested and continued the install instructions
i edited the conf.php as follows

`<?php
// Directory from which to read the categories.
$config['categoriesDir'] = 'node_modules/openstreetbrowser-categories-main';

// Set to true to reload categories on every page visit.
$config['categoriesAlwaysReload'] = true;

// URL of the Overpass API
$config['overpassUrl'] = array(
'http://127.0.0.1:8091/api/interpreter',
'http://127.0.0.1:8091/oapi/interpreter',
);

// Location of the initial view if no IP-location can be resolved. 'zoom' is optional.
$config['defaultView'] = array('lat' => 51.505, 'lon' => -0.09, 'zoom' => 18);

// Shall the initial map view be retrieved via IP location? (default: true)
$config['checkIpLocation'] = true;

// maxZoom (tiles will be scaled if higher than native zoom level). Default: 19.
$config['maxZoom'] = 19;

// Available base maps; first is default
$config['baseMaps'] = array(
array(
'id' => 'osm-mapnik',
'name' => 'OSM Default',
'attribution' => '© OpenStreetMap contributors',
'url' => 'http://172.16.0.101/osm_tiles/{z}/{x}/{y}.png',
'maxZoom' => 19,
),
array(
'id' => 'osm-cyle',
'name' => 'OSM CycleMap',
'attribution' => '© OpenStreetMap contributors, Tiles: Andy Allan',
'url' => 'http://172.16.0.101/osm_tiles/{z}/{x}/{y}.png?apikey=',
'maxZoom' => 18,
),
array(
'id' => 'opentopomap',
'name' => 'OpenTopoMap',
'attribution' => '© OpenStreetMap contributors, Tiles: OpenTopoMap',
'url' => 'http://172.16.0.101/osm_tiles/{z}/{x}/{y}.png',
'maxZoom' => 17,
),
array(
'id' => 'transportmap',
'name' => 'Transport Map',
'attribution' => '© OpenStreetMap contributors, Tiles: Andy Allan',
'url' => 'http://172.16.0.101/osm_tiles/transport/{z}/{x}/{y}.png?apikey=',
'maxZoom' => 20,
),
array(
'id' => 'hot',
'name' => 'Humanitarian',
'attribution' => '© OpenStreetMap contributors, Tiles: Humanitarian OpenStreetMap Team',
'url' => 'http://172.16.0.101/osm_tiles/{z}/{x}/{y}.png',
'maxZoom' => 20,
),
);

// List of available user interface languages
$languages = array(
"ast", // Asturian
"ca", // Catalan
"cs", // Czech
"da", // Danish
"de", // German
"el", // Greek
"en", // English
"es", // Spanish
"et", // Estonian
"fr", // French
"hu", // Hungarian
"it", // Italian
"ja", // Japanese
"nl", // Dutch
"pl", // Polish
"pt-br", // Portugese (Brazil)
"ro", // Romanian
"ru", // Russian
"sr", // Serbian
"uk", // Ukrainian
);
`

and edited the apache 000-default.conf as follows

`<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/api/openstreetbrowser

<Directory "/home/api/openstreetbrowser">
      AllowOverride None
      Options Indexes FollowSymLinks Multiviews
      Require all granted
      Order allow,deny
      Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
` but when i try to browse to localhost i only see the osb logo, Code (lilnk to github of osb) can you please tell me what did i do wrong.

engragy commented Nov 11, 2017

hi plepe

i have ignored the errors as you suggested and continued the install instructions
i edited the conf.php as follows

`<?php
// Directory from which to read the categories.
$config['categoriesDir'] = 'node_modules/openstreetbrowser-categories-main';

// Set to true to reload categories on every page visit.
$config['categoriesAlwaysReload'] = true;

// URL of the Overpass API
$config['overpassUrl'] = array(
'http://127.0.0.1:8091/api/interpreter',
'http://127.0.0.1:8091/oapi/interpreter',
);

// Location of the initial view if no IP-location can be resolved. 'zoom' is optional.
$config['defaultView'] = array('lat' => 51.505, 'lon' => -0.09, 'zoom' => 18);

// Shall the initial map view be retrieved via IP location? (default: true)
$config['checkIpLocation'] = true;

// maxZoom (tiles will be scaled if higher than native zoom level). Default: 19.
$config['maxZoom'] = 19;

// Available base maps; first is default
$config['baseMaps'] = array(
array(
'id' => 'osm-mapnik',
'name' => 'OSM Default',
'attribution' => '© OpenStreetMap contributors',
'url' => 'http://172.16.0.101/osm_tiles/{z}/{x}/{y}.png',
'maxZoom' => 19,
),
array(
'id' => 'osm-cyle',
'name' => 'OSM CycleMap',
'attribution' => '© OpenStreetMap contributors, Tiles: Andy Allan',
'url' => 'http://172.16.0.101/osm_tiles/{z}/{x}/{y}.png?apikey=',
'maxZoom' => 18,
),
array(
'id' => 'opentopomap',
'name' => 'OpenTopoMap',
'attribution' => '© OpenStreetMap contributors, Tiles: OpenTopoMap',
'url' => 'http://172.16.0.101/osm_tiles/{z}/{x}/{y}.png',
'maxZoom' => 17,
),
array(
'id' => 'transportmap',
'name' => 'Transport Map',
'attribution' => '© OpenStreetMap contributors, Tiles: Andy Allan',
'url' => 'http://172.16.0.101/osm_tiles/transport/{z}/{x}/{y}.png?apikey=',
'maxZoom' => 20,
),
array(
'id' => 'hot',
'name' => 'Humanitarian',
'attribution' => '© OpenStreetMap contributors, Tiles: Humanitarian OpenStreetMap Team',
'url' => 'http://172.16.0.101/osm_tiles/{z}/{x}/{y}.png',
'maxZoom' => 20,
),
);

// List of available user interface languages
$languages = array(
"ast", // Asturian
"ca", // Catalan
"cs", // Czech
"da", // Danish
"de", // German
"el", // Greek
"en", // English
"es", // Spanish
"et", // Estonian
"fr", // French
"hu", // Hungarian
"it", // Italian
"ja", // Japanese
"nl", // Dutch
"pl", // Polish
"pt-br", // Portugese (Brazil)
"ro", // Romanian
"ru", // Russian
"sr", // Serbian
"uk", // Ukrainian
);
`

and edited the apache 000-default.conf as follows

`<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/api/openstreetbrowser

<Directory "/home/api/openstreetbrowser">
      AllowOverride None
      Options Indexes FollowSymLinks Multiviews
      Require all granted
      Order allow,deny
      Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
` but when i try to browse to localhost i only see the osb logo, Code (lilnk to github of osb) can you please tell me what did i do wrong.
@plepe

This comment has been minimized.

Show comment
Hide comment
@plepe

plepe Nov 12, 2017

Owner

Any errors in the Javascript Console?

Owner

plepe commented Nov 12, 2017

Any errors in the Javascript Console?

@plepe

This comment has been minimized.

Show comment
Hide comment
@plepe

plepe Nov 12, 2017

Owner

Hmm, it can't load one of the legacy libraries. Let's see.

  • Try to add the line $modulekit_nocache = true; to conf.php.

if that doesn't work:

  • Can the file http://localhost/lib/modulekit/base/hooks/hooks.js be opened?

if that doesn't work:

  • does the file /home/api/openstreetbrowser/lib/modulekit/base/hooks/hooks.js exist in the file system?

if they don't exist:

  • have you executed git submodule init and git submodule update? Try to run these commands again.

if the file exists, but can't be opened by the web browser:

  • Any error messages? E.g. in error.log?
  • In the debugging tools of your webbrowser: are there any other files which can't be loaded?

Unrelated: I noticed that you replaced the host for the various Base Tiles in conf.php by 172.16.0.101. Why? Do you plan to host the tiles yourself?

Owner

plepe commented Nov 12, 2017

Hmm, it can't load one of the legacy libraries. Let's see.

  • Try to add the line $modulekit_nocache = true; to conf.php.

if that doesn't work:

  • Can the file http://localhost/lib/modulekit/base/hooks/hooks.js be opened?

if that doesn't work:

  • does the file /home/api/openstreetbrowser/lib/modulekit/base/hooks/hooks.js exist in the file system?

if they don't exist:

  • have you executed git submodule init and git submodule update? Try to run these commands again.

if the file exists, but can't be opened by the web browser:

  • Any error messages? E.g. in error.log?
  • In the debugging tools of your webbrowser: are there any other files which can't be loaded?

Unrelated: I noticed that you replaced the host for the various Base Tiles in conf.php by 172.16.0.101. Why? Do you plan to host the tiles yourself?

@engragy

This comment has been minimized.

Show comment
Hide comment
@engragy

engragy Nov 13, 2017

hii plepe

  • i added the line '$modulekit_nocache = true; to conf.php'.
    but with no change from firefox i only see osb.png , from chrome i see index.php code

  • yes , the file http://localhost/lib/modulekit/base/hooks/hooks.js can be opened normally

  • yes , the file http://localhost/lib/modulekit/base/hooks/hooks.js does exist in the system

  • i have executed git 'submodule init' and git submodule update before but i did it again

  • apache error log file has only two lines
    [Mon Nov 13 21:27:02.083513 2017] [mpm_event:notice] [pid 1039:tid 3074587200] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Mon Nov 13 21:27:02.214255 2017] [core:notice] [pid 1039:tid 3074587200] AH00094: Command line: '/usr/sbin/apache2'

  • i am trying to install openstreetbrowser to browse through my tile server which has only one country (egypt) , is this possible?

  • i am now using default conf.php file to avoid any unnecessary problems

  • i have installed on this ubuntu 16.04 system these packages

php v7
php-curl v7
nodejs v6.12
composer v1.0.0
git v2.7.4
apache2 v2.4.18

do i need a different versions or do need to install other pakages

engragy commented Nov 13, 2017

hii plepe

  • i added the line '$modulekit_nocache = true; to conf.php'.
    but with no change from firefox i only see osb.png , from chrome i see index.php code

  • yes , the file http://localhost/lib/modulekit/base/hooks/hooks.js can be opened normally

  • yes , the file http://localhost/lib/modulekit/base/hooks/hooks.js does exist in the system

  • i have executed git 'submodule init' and git submodule update before but i did it again

  • apache error log file has only two lines
    [Mon Nov 13 21:27:02.083513 2017] [mpm_event:notice] [pid 1039:tid 3074587200] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Mon Nov 13 21:27:02.214255 2017] [core:notice] [pid 1039:tid 3074587200] AH00094: Command line: '/usr/sbin/apache2'

  • i am trying to install openstreetbrowser to browse through my tile server which has only one country (egypt) , is this possible?

  • i am now using default conf.php file to avoid any unnecessary problems

  • i have installed on this ubuntu 16.04 system these packages

php v7
php-curl v7
nodejs v6.12
composer v1.0.0
git v2.7.4
apache2 v2.4.18

do i need a different versions or do need to install other pakages

@plepe

This comment has been minimized.

Show comment
Hide comment
@plepe

plepe Nov 13, 2017

Owner

The important message was that you can see php code of index.php. That means that apache2 can't execute PHP. You need the package libapache2-mod-php for this.

Sure it's possible to use a custom tile server (e.g. for a specific country). It wouldn't have been necessary to update all tile sources for this - you could have just added another source.

For me it's time to setup the translation system - I guess you'd like to create an Egyptian translation of OpenStreetBrowser, what do you think?

Owner

plepe commented Nov 13, 2017

The important message was that you can see php code of index.php. That means that apache2 can't execute PHP. You need the package libapache2-mod-php for this.

Sure it's possible to use a custom tile server (e.g. for a specific country). It wouldn't have been necessary to update all tile sources for this - you could have just added another source.

For me it's time to setup the translation system - I guess you'd like to create an Egyptian translation of OpenStreetBrowser, what do you think?

@plepe

This comment has been minimized.

Show comment
Hide comment
@plepe

plepe Nov 14, 2017

Owner

I hope that your installation finally works. I created more detailed installation instructions so that others have less difficulties than you had. Maybe you have some suggestions for improvements?

Owner

plepe commented Nov 14, 2017

I hope that your installation finally works. I created more detailed installation instructions so that others have less difficulties than you had. Maybe you have some suggestions for improvements?

@engragy

This comment has been minimized.

Show comment
Hide comment
@engragy

engragy Nov 14, 2017

hii plepe
yes my installation is working finally ,i am now testing osb with my overpass server but i have some errors and then i will test with my tile server
one question : do i have to install overpass alone or with the overpass turbo

in my experience for the php to able to read the maxmind database ,there were an error that suggested to install php-gmb or php-bcmath and i installed php7.0-gmp

and i am ready for adding an Arabic translation for osb , just tell me how
and thank you for helping me, your efforts is much appreciated :)

engragy commented Nov 14, 2017

hii plepe
yes my installation is working finally ,i am now testing osb with my overpass server but i have some errors and then i will test with my tile server
one question : do i have to install overpass alone or with the overpass turbo

in my experience for the php to able to read the maxmind database ,there were an error that suggested to install php-gmb or php-bcmath and i installed php7.0-gmp

and i am ready for adding an Arabic translation for osb , just tell me how
and thank you for helping me, your efforts is much appreciated :)

@plepe

This comment has been minimized.

Show comment
Hide comment
@plepe

plepe Nov 15, 2017

Owner

Congrats :-) Overpass Turbo is a frontend for Overpass API and therefore not needed.

About php-gmp - it seems to work without, so I'll rather not include it in the installation instructions.

Keep me updated about your progress :-)

Owner

plepe commented Nov 15, 2017

Congrats :-) Overpass Turbo is a frontend for Overpass API and therefore not needed.

About php-gmp - it seems to work without, so I'll rather not include it in the installation instructions.

Keep me updated about your progress :-)

@engragy

This comment has been minimized.

Show comment
Hide comment
@engragy

engragy Nov 22, 2017

hii plepe
sorry to bother you again , i just want to know how to use the openstreetbrowser-editor
to edit the categories but after installing it
i changed in the php.conf
categorey_path = "/openstreetbrowser/installation/folder/in/node_modules/openstreetbrowser-categories-main/`

i tried to view the editor from chrome but it wasn't displaying, found in apache error
PHP Warning: include (modulekit/loader.php): failed to open no such folder or directory

so i have edited the index.php file and included the full path of this file from my openstreetbrowser installation folders

and now i see more errors in apache error log
[Wed Nov 22 05:36:30.547721 2017] [:error] [pid 25318] [client ::1:58320] PHP Notice: Undefined variable: _SESSION in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:30.547815 2017] [:error] [pid 25318] [client ::1:58320] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:30.548783 2017] [:error] [pid 25318] [client ::1:58320] PHP Fatal error: Uncaught Error: Class 'GeoIp2\\Database\\Reader' not found in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php:3512\nStack trace:\n#0 /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php(37): {closure}(0, 0, 0, 0, 0)\n#1 /home/api/openstreetbrowser/editor/index.php(6): call_hooks('init')\n#2 {main}\n thrown in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3512 [Wed Nov 22 05:36:32.626438 2017] [:error] [pid 25320] [client ::1:58338] PHP Notice: Undefined variable: _SESSION in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:32.626691 2017] [:error] [pid 25320] [client ::1:58338] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:32.628241 2017] [:error] [pid 25320] [client ::1:58338] PHP Fatal error: Uncaught Error: Class 'GeoIp2\\Database\\Reader' not found in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php:3512\nStack trace:\n#0 /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php(37): {closure}(0, 0, 0, 0, 0)\n#1 /home/api/openstreetbrowser/editor/index.php(6): call_hooks('init')\n#2 {main}\n thrown in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3512 [Wed Nov 22 05:36:34.014526 2017] [:error] [pid 25617] [client ::1:58348] PHP Notice: Undefined variable: _SESSION in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:34.014869 2017] [:error] [pid 25617] [client ::1:58348] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:34.015929 2017] [:error] [pid 25617] [client ::1:58348] PHP Fatal error: Uncaught Error: Class 'GeoIp2\\Database\\Reader' not found in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php:3512\nStack trace:\n#0 /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php(37): {closure}(0, 0, 0, 0, 0)\n#1 /home/api/openstreetbrowser/editor/index.php(6): call_hooks('init')\n#2 {main}\n thrown in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3512 [Wed Nov 22 05:36:35.345193 2017] [:error] [pid 25320] [client ::1:58366] PHP Notice: Undefined variable: _SESSION in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:35.345907 2017] [:error] [pid 25320] [client ::1:58366] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:35.351632 2017] [:error] [pid 25320] [client ::1:58366] PHP Fatal error: Uncaught Error: Class 'GeoIp2\\Database\\Reader' not found in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php:3512\nStack trace:\n#0 /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php(37): {closure}(0, 0, 0, 0, 0)\n#1 /home/api/openstreetbrowser/editor/index.php(6): call_hooks('init')\n#2 {main}\n thrown in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3512

engragy commented Nov 22, 2017

hii plepe
sorry to bother you again , i just want to know how to use the openstreetbrowser-editor
to edit the categories but after installing it
i changed in the php.conf
categorey_path = "/openstreetbrowser/installation/folder/in/node_modules/openstreetbrowser-categories-main/`

i tried to view the editor from chrome but it wasn't displaying, found in apache error
PHP Warning: include (modulekit/loader.php): failed to open no such folder or directory

so i have edited the index.php file and included the full path of this file from my openstreetbrowser installation folders

and now i see more errors in apache error log
[Wed Nov 22 05:36:30.547721 2017] [:error] [pid 25318] [client ::1:58320] PHP Notice: Undefined variable: _SESSION in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:30.547815 2017] [:error] [pid 25318] [client ::1:58320] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:30.548783 2017] [:error] [pid 25318] [client ::1:58320] PHP Fatal error: Uncaught Error: Class 'GeoIp2\\Database\\Reader' not found in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php:3512\nStack trace:\n#0 /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php(37): {closure}(0, 0, 0, 0, 0)\n#1 /home/api/openstreetbrowser/editor/index.php(6): call_hooks('init')\n#2 {main}\n thrown in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3512 [Wed Nov 22 05:36:32.626438 2017] [:error] [pid 25320] [client ::1:58338] PHP Notice: Undefined variable: _SESSION in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:32.626691 2017] [:error] [pid 25320] [client ::1:58338] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:32.628241 2017] [:error] [pid 25320] [client ::1:58338] PHP Fatal error: Uncaught Error: Class 'GeoIp2\\Database\\Reader' not found in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php:3512\nStack trace:\n#0 /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php(37): {closure}(0, 0, 0, 0, 0)\n#1 /home/api/openstreetbrowser/editor/index.php(6): call_hooks('init')\n#2 {main}\n thrown in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3512 [Wed Nov 22 05:36:34.014526 2017] [:error] [pid 25617] [client ::1:58348] PHP Notice: Undefined variable: _SESSION in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:34.014869 2017] [:error] [pid 25617] [client ::1:58348] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:34.015929 2017] [:error] [pid 25617] [client ::1:58348] PHP Fatal error: Uncaught Error: Class 'GeoIp2\\Database\\Reader' not found in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php:3512\nStack trace:\n#0 /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php(37): {closure}(0, 0, 0, 0, 0)\n#1 /home/api/openstreetbrowser/editor/index.php(6): call_hooks('init')\n#2 {main}\n thrown in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3512 [Wed Nov 22 05:36:35.345193 2017] [:error] [pid 25320] [client ::1:58366] PHP Notice: Undefined variable: _SESSION in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:35.345907 2017] [:error] [pid 25320] [client ::1:58366] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3487 [Wed Nov 22 05:36:35.351632 2017] [:error] [pid 25320] [client ::1:58366] PHP Fatal error: Uncaught Error: Class 'GeoIp2\\Database\\Reader' not found in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php:3512\nStack trace:\n#0 /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php(37): {closure}(0, 0, 0, 0, 0)\n#1 /home/api/openstreetbrowser/editor/index.php(6): call_hooks('init')\n#2 {main}\n thrown in /home/api/openstreetbrowser/.modulekit-cache/compiled_php.php on line 3512

@plepe

This comment has been minimized.

Show comment
Hide comment
@plepe

plepe Nov 23, 2017

Owner

Editing index.php doesn't seem right. I guess you haven't run "git submodule init" and "git submodule update" in the openstreetbrowser-editor folder? When you are using the modulekit/loader from OpenStreetBrowser it will include wrong dependencies.

Anyway, I will improve the editor over the weekend. Right now it's not (really) possible yet to create new categories and documentation is bad.

Btw, it's no bother that you write. You are the first person (beside me) to run a separate OpenStreetBrowser, so I need you to report bugs :-) It's an open source project, therefore I want other users to use OpenStreetBrowser (or any of the modules) and maybe even contribute.

Owner

plepe commented Nov 23, 2017

Editing index.php doesn't seem right. I guess you haven't run "git submodule init" and "git submodule update" in the openstreetbrowser-editor folder? When you are using the modulekit/loader from OpenStreetBrowser it will include wrong dependencies.

Anyway, I will improve the editor over the weekend. Right now it's not (really) possible yet to create new categories and documentation is bad.

Btw, it's no bother that you write. You are the first person (beside me) to run a separate OpenStreetBrowser, so I need you to report bugs :-) It's an open source project, therefore I want other users to use OpenStreetBrowser (or any of the modules) and maybe even contribute.

@plepe

This comment has been minimized.

Show comment
Hide comment
@plepe

plepe Nov 28, 2017

Owner

So. OpenStreetBrowser got a lot of updates (new category 'water', improved categories: some categories now feature an info section), as did the openstreetbrowser-editor. You should do a 'git pull; npm install; composer install; git submodule update' on both projects.

I'm planning some updates for the openstreetbrowser-editor (live preview), but I'd prefer to move discussion on this to the appropriate repository.

Owner

plepe commented Nov 28, 2017

So. OpenStreetBrowser got a lot of updates (new category 'water', improved categories: some categories now feature an info section), as did the openstreetbrowser-editor. You should do a 'git pull; npm install; composer install; git submodule update' on both projects.

I'm planning some updates for the openstreetbrowser-editor (live preview), but I'd prefer to move discussion on this to the appropriate repository.

@plepe

This comment has been minimized.

Show comment
Hide comment
@plepe

plepe Jan 12, 2018

Owner

Have you noticed the newest update? It's now possible to create own categories on main OpenStreetBrowser: https://blog.openstreetbrowser.org/node/51

Maybe this is something for you?

Owner

plepe commented Jan 12, 2018

Have you noticed the newest update? It's now possible to create own categories on main OpenStreetBrowser: https://blog.openstreetbrowser.org/node/51

Maybe this is something for you?

@plepe

This comment has been minimized.

Show comment
Hide comment
@plepe

plepe Jan 28, 2018

Owner

I guess it's okay to close this issue? Just re-open it if you still have questions ...

Owner

plepe commented Jan 28, 2018

I guess it's okay to close this issue? Just re-open it if you still have questions ...

@plepe plepe closed this Jan 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment