Hi,

Using tag: `*kylin-3.1.2*`, I tried executing `build/scripts/package.sh`
but I'm always getting an error on the `npm install` step. I tried several
versions of Node already but it seems nothing is working yet.

Questions:
1. What Node version are you using to get a successful build?
2. I'm using macOS Catalina 10.15.7, will the project build with this OS X
version?

Note: Maven build step is successful but not for `npm install` step.

Appreciate your help!

Thanks,
Kenneth

Please see error encountered below:


> [email protected] postinstall
/Users/myuser/Projects/kylin/kylin/webapp/node_modules/jpegtran-bin
> node pre-build.js

  ✖ 4 of 3 tests failed:

  1) jpegtran should return path to jpegtran binary:
     AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy
value:

  assert(stderr.toString().indexOf('libjpeg-turbo') !== -1)

      at
/Users/myuser/Projects/kylin/kylin/webapp/node_modules/jpegtran-bin/test/test-jpegtran-path.js:18:4
      at ChildProcess.exithandler (child_process.js:306:5)
      at ChildProcess.emit (events.js:193:13)
      at maybeClose (internal/child_process.js:999:16)
      at Socket.stream.socket.on (internal/child_process.js:403:11)
      at Socket.emit (events.js:193:13)
      at Pipe._handle.close (net.js:614:12)

  2) jpegtran should successfully proxy jpegtran:
     AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy
value:

  assert(stderr.toString().indexOf('libjpeg-turbo') !== -1)

      at
/Users/myuser/Projects/kylin/kylin/webapp/node_modules/jpegtran-bin/test/test-jpegtran-path.js:27:4
      at ChildProcess.exithandler (child_process.js:306:5)
      at ChildProcess.emit (events.js:193:13)
      at maybeClose (internal/child_process.js:999:16)
      at Process.ChildProcess._handle.onexit
(internal/child_process.js:266:5)

  3) jpegtran should minify a .jpg:
     Error: ENOENT: no such file or directory, stat 'test/minified.jpg'
      at Object.statSync (fs.js:871:3)
      at
/Users/myuser/Projects/kylin/kylin/webapp/node_modules/jpegtran-bin/test/test-jpegtran-path.js:42:20
      at ChildProcess.exithandler (child_process.js:306:5)
      at ChildProcess.emit (events.js:193:13)
      at maybeClose (internal/child_process.js:999:16)
      at Process.ChildProcess._handle.onexit
(internal/child_process.js:266:5)

  4) jpegtran "after all" hook:
     Error: ENOENT: no such file or directory, unlink 'test/minified.jpg'
      at Object.unlinkSync (fs.js:972:3)
      at Context.<anonymous>
(/Users/myuser/Projects/kylin/kylin/webapp/node_modules/jpegtran-bin/test/test-jpegtran-path.js:11:6)
      at Hook.Runnable.run
(/Users/myuser/Projects/kylin/kylin/webapp/node_modules/mocha/lib/runnable.js:213:32)
      at next
(/Users/myuser/Projects/kylin/kylin/webapp/node_modules/mocha/lib/runner.js:243:10)
      at Immediate._onImmediate
(/Users/myuser/Projects/kylin/kylin/webapp/node_modules/mocha/lib/runner.js:254:5)
      at processImmediate (internal/timers.js:443:21)


pre-build test failed, compiling from source...
Fetching
http://downloads.sourceforge.net/project/libjpeg-turbo/1.2.90%20%281.3beta1%29/libjpeg-turbo-1.2.90.tar.gz.
..
Done in
/var/folders/kw/jsxmrnbs7hgb3xnv1gz59rhc0000gn/T/libjpeg-turbo-1.2.90

Building libjpeg-turbo...

/Users/myuser/Projects/kylin/kylin/webapp/node_modules/jpegtran-bin/build.js:78
                                                        throw err;
                                                        ^

Error: Command failed: ./configure --disable-shared --host
i686-apple-darwin CFLAGS='-O3 -m32' LDFLAGS=-m32 &&make install
prefix=/var/folders/kw/jsxmrnbs7hgb3xnv1gz59rhc0000gn/T/libjpeg-turbo-1.2.90
bindir=/Users/myuser/Projects/kylin/kylin/webapp/node_modules/jpegtran-bin/vendor/osx
bin_PROGRAMS=jpegtran
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
configure: error: C compiler cannot create executables
See `config.log' for more details.

    at ChildProcess.exithandler (child_process.js:299:12)
    at ChildProcess.emit (events.js:193:13)
    at maybeClose (internal/child_process.js:999:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:266:5)
npm WARN [email protected] requires a peer of flow-remove-types@>=2.112.0 but
none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ts-node@>=8.5.2 but none is
installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>=3.7.2 but none is
installed. You must install peer dependencies yourself.
npm WARN [email protected] No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node pre-build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall 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!     /Users/myuser/.npm/_logs/2021-11-12T01_13_47_461Z-debug.log
myuser@HDLR-2F75K9MD6R kylin % cd webapp
myuser@HDLR-2F75K9MD6R webapp % npm cache clean
npm ERR! As of npm@5, the npm cache self-heals from corruption issues and
data extracted from the cache is guaranteed to be valid. If you want to
make sure everything is consistent, use 'npm cache verify' instead. On the
other hand, if you're debugging an issue with the installer, you can use
`npm install --cache /tmp/empty-cache` to use a temporary cache instead of
nuking the actual one.
npm ERR!
npm ERR! If you're sure you want to delete the entire cache, rerun this
command with --force.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/myuser/.npm/_logs/2021-11-12T01_21_52_240Z-debug.log

Reply via email to