fsevents error Windows 10

We are on Windows 10 with Node 6.9.2 and npm 3.9.5 While building the Bahmni EMR UI application we get error fsevents@1.0.14 install: node-pre-gyp install --fallback-to-build

This is a known issue. Can you please upgrade npm to 3.10.7 version?

I upgraded Node - 7.2.1 as well as npm - 4.0.3 but I get this new error

80883 error Windows_NT 10.0.10586 80884 error argv “C:\Program Files\nodejs\node.exe” “C:\Users\Nehal\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “install” 80885 error node v7.2.1 80886 error npm v4.0.3 80887 error Cannot read property ‘debug’ of undefined

NPM version 4.0.3 is not stable. Please downgrade it to 3.10.7. Run npm install -g npm@3.10.7. We are aware of the issue. Currently 3.10.7 doesn’t fail for fsevents dependency.

I downgraded npm to 3.10.7 and also nodejs to 6.9.2 but it is still giving fsevents error

160408 silly lifecycle fsevents@1.0.14~install: Args: [ ‘/d /s /c’, ‘node-pre-gyp install --fallback-to-build’ ] 160409 silly lifecycle fsevents@1.0.14~install: Returned: code: 1 signal: null 160410 info lifecycle fsevents@1.0.14~install: Failed to exec install script 160411 verbose unlock done using C:\Users\Nehal\AppData\Roaming\npm-cache_locks\staging-6ba0b7bc6d1fa09f.lock for C:\Projects\Bahmni\openmrs-module-bahmniapps\ui\node_modules.staging 160412 silly rollbackFailedOptional Starting 160413 silly rollbackFailedOptional Finishing 160414 silly runTopLevelLifecycles Finishing 160415 silly install printInstalled 160416 warn optional Skipping failed optional dependency /chokidar/fsevents: 160417 warn notsup Not compatible with your operating system or architecture: fsevents@1.0.15 160418 verbose stack Error: fsevents@1.0.14 install: node-pre-gyp install --fallback-to-build 160418 verbose stack Exit status 1 160418 verbose stack at EventEmitter. (C:\Users\Nehal\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:255:16) 160418 verbose stack at emitTwo (events.js:106:13) 160418 verbose stack at EventEmitter.emit (events.js:191:7) 160418 verbose stack at ChildProcess. (C:\Users\Nehal\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14) 160418 verbose stack at emitTwo (events.js:106:13) 160418 verbose stack at ChildProcess.emit (events.js:191:7) 160418 verbose stack at maybeClose (internal/child_process.js:877:16) 160418 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 160419 verbose pkgid fsevents@1.0.14 160420 verbose cwd C:\Projects\Bahmni\openmrs-module-bahmniapps\ui 160421 error Windows_NT 10.0.10586 160422 error argv “C:\Program Files\nodejs\node.exe” “C:\Users\Nehal\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “install” 160423 error node v6.9.2 160424 error npm v3.10.7 160425 error code ELIFECYCLE 160426 error fsevents@1.0.14 install: node-pre-gyp install --fallback-to-build 160426 error Exit status 1 160427 error Failed at the fsevents@1.0.14 install script ‘node-pre-gyp install --fallback-to-build’. 160427 error Make sure you have the latest version of node.js and npm installed. 160427 error If you do, this is most likely a problem with the fsevents package, 160427 error not with npm itself. 160427 error Tell the author that this fails on your system: 160427 error node-pre-gyp install --fallback-to-build 160427 error You can get information on how to open an issue for this project with: 160427 error npm bugs fsevents 160427 error Or if that isn’t available, you can get their info via: 160427 error npm owner ls fsevents 160427 error There is likely additional logging output above. 160428 verbose exit [ 1, true ]

In spite of fsevents error, we proceeded further to bower install grunt test grunt and also set up soft links to Windows (host) folder and could see the site. Any ideas about fsevents error?

Could you please try run npm install --no-optional ? It fixed the issue for others. Error when Build Bahmni EMR UI