I just removed node locally and it seems to work fine now - thanks for all
your help!

Colm.

On Mon, Jul 8, 2019 at 7:19 PM Kevin Risden <[email protected]> wrote:

> Colm and Larry - the installed version of NPM shouldn't matter. You should
> be able to remove local NPM and it should work. The frontend-maven-plugin
> will download NPM so it is a clean build each time if necessary (and
> doesn't end up on global path). It shouldn't use the locally installed NPM
> at all.
>
> You can check the log files for the Maven build and see which NPM is used.
> This also shouldn't matter which Java version. I have been running on
> Ubuntu and Mac without issues.
>
> Colm - Can you see if this reproduces without Maven? (This assumes you have
> run the Maven frontend plugin at least once)
>
> cd gateway-admin-ui
> ./npm install
> ./npm run build-prod
>
> The above npm script is a wrapper around the one installed locally just for
> Knox and not the global one installed on the system.
>
> Kevin Risden
>
>
> On Mon, Jul 8, 2019 at 1:27 PM Colm O hEigeartaigh <[email protected]>
> wrote:
>
> > Hi Larry,
> >
> > Perhaps the problem is my newer version of NPM?
> >
> > > npm -version
> > 5.8.0
> > > mvn -version
> > Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555;
> > 2019-04-04T20:00:29+01:00)
> > Maven home: /home/coheig/.sdkman/candidates/maven/current
> > Java version: 1.8.0_212, vendor: Azul Systems, Inc., runtime:
> > /home/coheig/.sdkman/candidates/java/8.0.212-zulu/jre
> > OS name: "linux", version: "5.0.0-20-generic", arch: "amd64", family:
> > "unix"
> >
> > I get the same error with Java 11.
> >
> > Colm.
> >
> > On Thu, Jul 4, 2019 at 8:49 PM larry mccay <[email protected]> wrote:
> >
> > > I just built it successfully the same way as you on my Linux Mint
> machine
> > > with the following versions:
> > >
> > > lmccay@NordzLinux:~/Projects/knox$ npm --version
> > > *3.5.2*
> > > lmccay@NordzLinux:~/Projects/knox$ mvn --version
> > > *Apache Maven 3.6.0*
> > > Maven home: /usr/share/maven
> > > Java version: 10.0.2, vendor: Oracle Corporation, runtime:
> > > /usr/lib/jvm/java-11-openjdk-amd64
> > > Default locale: en_US, platform encoding: UTF-8
> > > OS name: "linux", version: "4.15.0-20-generic", arch: "amd64", family:
> > > "unix"
> > > lmccay@NordzLinux:~/Projects/knox$ java -version
> > >
> > > Rather old version of NPM considering that I just installed it
> yesterday.
> > >
> > > On Thu, Jul 4, 2019 at 2:01 PM larry mccay <[email protected]> wrote:
> > >
> > >> Hmmm - I've not seen that but I always do:
> > >>
> > >> mvn clean install -DskipTests=false -Ppackage
> > >>
> > >> Maybe the packaging is setting up something that we need for npm?
> > >>
> > >> On Wed, Jul 3, 2019 at 1:25 PM Colm O hEigeartaigh <
> [email protected]
> > >
> > >> wrote:
> > >>
> > >>> Hi Kevin,
> > >>>
> > >>> I was just building the source with "mvn clean install". I uploaded
> the
> > >>> error log here:
> > >>>
> > >>> https://paste.apache.org/Jbl8
> > >>>
> > >>> Colm.
> > >>>
> > >>> On Tue, Jul 2, 2019 at 6:50 PM Kevin Risden <[email protected]>
> > wrote:
> > >>>
> > >>> > Can you share more of the output? Specifically what command are you
> > >>> > running?
> > >>> >
> > >>> > The maven build should not be using the local NPM install and
> instead
> > >>> use
> > >>> > one from the maven-frontend-plugin.
> > >>> >
> > >>> > Kevin Risden
> > >>> >
> > >>> >
> > >>> > On Tue, Jul 2, 2019 at 1:48 PM Colm O hEigeartaigh <
> > >>> [email protected]>
> > >>> > wrote:
> > >>> >
> > >>> >> Hi all,
> > >>> >>
> > >>> >> I can't build Knox master any more - I get some npm errors in
> > >>> >> gateway-admin-ui. I'm on Ubuntu using NPM 5.8.0. The errors are
> > along
> > >>> the
> > >>> >> lines of:
> > >>> >>
> > >>> >> [ERROR] npm ERR! code ELIFECYCLE
> > >>> >> [ERROR] npm ERR! errno 139
> > >>> >> [ERROR] npm ERR! [email protected] postinstall: `node
> > >>> >> lib/post_install.js`
> > >>> >> [ERROR] npm ERR! Exit status 139
> > >>> >> [ERROR] npm ERR!
> > >>> >> [ERROR] npm ERR! Failed at the [email protected]
> > >>> postinstall
> > >>> >> script.
> > >>> >> [ERROR] npm ERR! This is probably not a problem with npm. There is
> > >>> likely
> > >>> >> additional logging output above.
> > >>> >>
> > >>> >> Any ideas?
> > >>> >>
> > >>> >> Colm.
> > >>> >>
> > >>> >>
> > >>> >> --
> > >>> >> Colm O hEigeartaigh
> > >>> >>
> > >>> >> Talend Community Coder
> > >>> >> http://coders.talend.com
> > >>> >>
> > >>> >
> > >>>
> > >>> --
> > >>> Colm O hEigeartaigh
> > >>>
> > >>> Talend Community Coder
> > >>> http://coders.talend.com
> > >>>
> > >>
> >
> > --
> > Colm O hEigeartaigh
> >
> > Talend Community Coder
> > http://coders.talend.com
> >
>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to