osrm-frontend
osrm-frontend copied to clipboard
Deprecated corslite and polyline warnings during install
On installation command sudo npm install, saw these warning messages:
npm WARN deprecated [email protected]: This module is now under the @mapbox namespace: install @mapbox/corslite instead
npm WARN deprecated [email protected]: This module is now under the @mapbox namespace: install @mapbox/polyline instead
...
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency /watchify/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
Don't know what to do about the fsevents part, but corslite and polyline I was able to install by:
sudo npm install @mapbox/corslite
sudo npm install @mapbox/polyline
But I saw this output:
├── @mapbox/[email protected] extraneous
├── @mapbox/[email protected] extraneous
└── [email protected]
Not so sure now whether these were needed or not, but I got the frontend running properly now. In the console network monitor, i see corslite.js playing a prominent role so it may be important. (change services > path in src/leaflet_options.js to make it poll your osrm-backend instead of the web!)
Also, it might be worth mentioning that I had to sudo npm install instead of just npm install to avoid all the error messages.