Problems with openlayers installation?


(I.) #1

I hope that I will get some instruction / advises for openlayers installation.
I had been trying to get openlayers to working.

The npm install ol has been done under html directory.

/usr/share/nginx/html/node_modules

drwxr-xr-x. 2 root root 74 Dec 1 21:49 ieee754
drwxr-xr-x. 20 root root 8192 Dec 1 21:49 ol
drwxr-xr-x. 6 root root 233 Dec 1 21:49 pbf
drwxr-xr-x. 5 root root 119 Dec 1 21:49 pixelworks
drwxr-xr-x. 3 root root 217 Dec 1 21:49 protocol-buffers-schema
drwxr-xr-x. 2 root root 96 Dec 1 21:49 quickselect
drwxr-xr-x. 2 root root 110 Dec 1 21:49 rbush
drwxr-xr-x. 3 root root 105 Dec 1 21:49 resolve-protobuf-schema

Also installation with -g option doesn’t change the situation.

When the very basic HTML code is executed (in index.js) or script is in html-code the executions are failing. “Unexpected string” “Unexpected identifier” both of them fails in the the first imports.

Have I misunderstood something?

All advises are welcome.


(system) #2

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.