1
votes

I am installing "cordova-plugin-geolocation" via npm but "cordova-plugin-geolocation" is unable to install. I am seeing the following warnings:

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:

npm WARN notsup Not compatible with your operating system or architecture: [email protected]

Is there any possible solution?

3

3 Answers

2
votes

I used the following command to install NPM dependencies with the parameter NO-OPTIONAL

npm install --no-optional

source: https://github.com/ariesjia/grunt-riot/issues/16

-1
votes

Make .npmignore with node_modules chokidar/fsevents inside

-1
votes

I was getting this error when I run gulp command

Error: watch node_modules/bootstrap/scss/bootstrap.scss ENOSPC
        at _errnoException (util.js:1022:11)
        at FSWatcher.start (fs.js:1382:19)
        at Object.fs.watch (fs.js:1408:11)
        at createFsWatchInstance

I ran this and it works for me

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p