Hi all. I finally attempted to start using composer and npm for openEMR installs. I’m new to composer and I have been learning a ton. Here is an issue that I’ve been banging my head on all day. When I try to run npm I get the following errors:
I get the following warning when installing composer in the new openemr repository
Concern here is the gulp build fail. grab your log and see whats up there. doubtful it is an npm version issue but never know. The Zend warning is not related and can ignore I believe…
Blockquote
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/nodejs’, ‘/usr/bin/npm’, ‘run’, ‘build’ ]
2 info using npm@4.2.0
3 info using node@v7.10.1
4 verbose run-script [ ‘prebuild’, ‘build’, ‘postbuild’ ]
5 info lifecycle openemr-interface@0.2.0~prebuild: openemr-interface@0.2.0
6 silly lifecycle openemr-interface@0.2.0~prebuild: no script for prebuild, continuing
7 info lifecycle openemr-interface@0.2.0~build: openemr-interface@0.2.0
8 verbose lifecycle openemr-interface@0.2.0~build: unsafe-perm in lifecycle true
9 verbose lifecycle openemr-interface@0.2.0~build: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/growlingflea/gitrepos/openemr/node_modules/.bin:/home/growlingflea/google-cloud-sdk/bin:/home/growlingflea/.rbenv/shims:/home/growlingflea/.rbenv/bin:/usr/lib/jvm/jre1.8.0_101/bin:/home/growlingflea/bin:/home/growlingflea/.local/bin:/opt/OpenPrinting-Gutenprint/sbin:/opt/OpenPrinting-Gutenprint/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
10 verbose lifecycle openemr-interface@0.2.0~build: CWD: /home/growlingflea/gitrepos/openemr
11 silly lifecycle openemr-interface@0.2.0~build: Args: [ ‘-c’, ‘gulp -b’ ]
12 silly lifecycle openemr-interface@0.2.0~build: Returned: code: 1 signal: null
13 info lifecycle openemr-interface@0.2.0~build: Failed to exec build script
14 verbose stack Error: openemr-interface@0.2.0 build: gulp -b
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:194:7)
14 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:194:7)
14 verbose stack at maybeClose (internal/child_process.js:899:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid openemr-interface@0.2.0
16 verbose cwd /home/growlingflea/gitrepos/openemr
17 error Linux 4.4.0-142-generic
18 error argv “/usr/bin/nodejs” “/usr/bin/npm” “run” “build”
19 error node v7.10.1
20 error npm v4.2.0
21 error code ELIFECYCLE
22 error errno 1
23 error openemr-interface@0.2.0 build: gulp -b
23 error Exit status 1
24 error Failed at the openemr-interface@0.2.0 build script ‘gulp -b’.
24 error Make sure you have the latest version of node.js and npm installed.
24 error If you do, this is most likely a problem with the openemr-interface package,
24 error not with npm itself.
24 error Tell the author that this fails on your system:
24 error gulp -b
24 error You can get information on how to open an issue for this project with:
24 error npm bugs openemr-interface
24 error Or if that isn’t available, you can get their info via:
24 error npm owner ls openemr-interface
24 error There is likely additional logging output above.
25 verbose exit [ 1, true ]
Blockquote
Not much different than what was printed to the console.
I was able to get it to work!! Thanks for your assistance. The problem was my node.js file was way out of date. As you mentioned I was using v7.0 and the most up-to-date version is 11.10.0.
For others who experience the same problem. You can check your version by typing node -v.
Here is another question. Why does the rel-501 not have the package.json file but master does. I always thought the rel- branches are the stable branches that should be used for production.
I wasn’t aware the json package didn’t ship with packaged version of 501 but i’d assume it’s because until 502 the dependencies were fixed in source and included in the released package thus no need to install on OpenEMR install. That is what is great about 502 is it pulled a million plus lines of code(I think Brady said) out of git source control.
The reason it is in master is so admin can manage the dependencies.
@brady.miller@tywrenn
Hi, I am trying to install from github.com so I can take version 6 for a testdrive.
I am following the instructions for npm found at the bottom. I am running into this problem. Posting here just in case (noticed gulpfile.js file was recently updated)
[17:21:07] The following tasks did not complete: default, <parallel>, styles_style_color, styles_style_color_compact, styles_style_uni, styles_style_uni_compact, styles_style_portal, styles_style_tabs, styles_style_misc, rtl_style_color, rtl_style_color_compact, rtl_style_uni, rtl_style_uni_compact, rtl_style_portal, rtl_style_tabs, rtl_style_misc
[17:21:07] Did you forget to signal async completion?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! openemr-interface@0.2.0 build: `gulp -b`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openemr-interface@0.2.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-12-15T22_21_07_440Z-debug.log
My apologies, all this is one error block. I’m having a hard time formatting it.
There is no information in the log
I am using FreeBSD 12.2