Bahmni EMR UI Build failure on issuing grunt command

Following the instructions in https://bahmni.atlassian.net/wiki/display/BAH/Setting+up+Bahmni+Dev+Environment the build fails when issuing grunt with the following error: Running "karma:unit" (karma) task WARN [watcher]: Pattern "/Users/enrique/fastlabs/bahmni/openmrs-module-bahmniapps/ui/app/components/offline/offline.min.js" does not match any file. WARN [watcher]: { [Error: EMFILE, readdir '/Users/enrique/fastlabs/bahmni/openmrs-module-bahmniapps/ui/app/components/jasmine/lib/jasmine-core/example/node_example/lib'] errno: 20, code: 'EMFILE', path: '/Users/enrique/fastlabs/bahmni/openmrs-module-bahmniapps/ui/app/components/jasmine/lib/jasmine-core/example/node_example/lib' } Error: EMFILE, readdir '/Users/enrique/fastlabs/bahmni/openmrs-module-bahmniapps/ui/app/components/jasmine/lib/jasmine-core/example/node_example/lib'

@decote: Why are you tryign to setup a Dev environment? Are you planning to modify the code base and contribute to Bahmni, or just wish to “deploy” Bahmni to a hospital. For the latter, usually setting up a dev environment isn’t needed. Just wanted to confirm?

I need to modify the file https://github.com/Bahmni/bahmni-core/blob/master/admin/src/main/java/org/bahmni/module/admin/csv/models/LabResultsRow.java and probably some other to interface lab equipment with bahmni EMR.

If you are only modifying bahmni-core, then you can ignore the npm / grunt commands because those commands are for compiling the UI.

For bahmni-core (which is basically an OpenMRS module), you need to only do these steps: https://bahmni.atlassian.net/wiki/display/BAH/Setting+up+Bahmni+Dev+Environment#SettingupBahmniDevEnvironment-DevelopingOpenMRSJavamodules

# inside the bahmni-core folder
 mvn clean install  

This will generate an omod file, which will need to be copied over to “/opt/openmrs” in modules sub-folder. Then restart openmrs service.