npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Problems with openlayers installation?

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.


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.