To correct myself in the last reply, the current release of Metron uses node 9.11.1 and npm 6.2.0. Sorry about the confusion.
On 2018/11/30 14:36:34, Shane Ardell <[email protected]> wrote: > When you run a build with maven, the versions of npm and node are specified > in each interface's pom.xml. As of the latest release, both the Alerts UI and > Management UI use npm 9.11.1 and node 6.2.0. It looks like you used node > 6.14.3 and npm 3.10.10 here. Not using the versions specified in Metron can > cause headaches for a few reasons > > 1. Older versions of npm use a different tree structure for dependencies. > 2. Versions of npm under 5.7.1 do not include the `npm ci` command. > 3. The latest release from node often takes time for npm to support. > > Even when you're using a matching version of npm and node, if you run `npm > install`, npm will ignore the package lock file and install according to > what's listed in package.json, which can lead to version mismatches, missing > dependencies, etc. > > Is this log from when you manually ran `npm install`? Can you share part of > the maven build log where the metron-config failure happens? > > On 2018/11/30 11:45:50, Farrukh Naveed Anjum <[email protected]> wrote: > > I tried hard to run the > > mvn clean package -DskipTests -T 2C -P HDP-2.5.0.0,mpack > > > > but metron-config failed, after reading the comments from one post i tried > > to run npm install (in metron-config) folder. But it again failed with > > following errors. > > > > npm WARN deprecated [email protected]: Use uuid module instead > > npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or > > higher to avoid a RegExp DoS issue > > npm WARN lifecycle [email protected]~postinstall: cannot run in wd > > %s %s (wd=%s) [email protected] npm run copy-ace & npm run > > copy-ace-snippets /root/metron/metron-interface/metron-config > > [email protected] /root/metron/metron-interface/metron-config > > ├── UNMET PEER DEPENDENCY @angular/[email protected] > > ├── UNMET PEER DEPENDENCY @angular/[email protected] > > ├── UNMET PEER DEPENDENCY @angular/[email protected] > > ├── UNMET PEER DEPENDENCY @angular/[email protected] > > └─┬ [email protected] > > ├─┬ @angular-cli/[email protected] > > │ └── @angular/[email protected] > > ├── UNMET PEER DEPENDENCY @angular/[email protected] > > ├─┬ [email protected] > > │ ├─┬ [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ │ └── [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ └─┬ [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ └── [email protected] > > │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ │ └── [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ └─┬ [email protected] > > │ │ │ │ │ └── [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ └─┬ [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ └── [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ └── [email protected] > > │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ └── [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ └── [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ └─┬ [email protected] > > │ │ │ └── [email protected] > > │ │ └─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ └── [email protected] > > │ ├─┬ [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ └─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ └─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ └─┬ [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ └─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ └─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ └── [email protected] > > │ │ └─┬ [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ ├── [email protected] > > │ │ │ └─┬ [email protected] > > │ │ │ └── [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ ├── [email protected] > > │ │ │ └── [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ └─┬ [email protected] > > │ │ │ ├── [email protected] > > │ │ │ └── [email protected] > > │ │ ├── [email protected] > > │ │ └─┬ [email protected] > > │ │ ├── [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ └── [email protected] > > │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ │ │ └── [email protected] > > │ │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ │ └── [email protected] > > │ │ │ │ │ └── [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ └─┬ [email protected] > > │ │ │ └── [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ └── [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ └── [email protected] > > │ │ └── [email protected] > > │ ├─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ └── [email protected] > > │ ├─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ └── [email protected] > > │ ├─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ └── [email protected] > > │ ├─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ └── [email protected] > > │ ├─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ └── [email protected] > > │ │ └─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ └── [email protected] > > │ ├─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ ├── [email protected] > > │ │ ├── [email protected] > > │ │ └── [email protected] > > │ ├─┬ [email protected] > > │ │ └── [email protected] > > │ ├─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ ├── [email protected] > > │ │ └── [email protected] > > │ ├─┬ [email protected] > > │ │ └── [email protected] > > │ ├─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ └── [email protected] > > │ ├── [email protected] > > │ ├─┬ [email protected] > > │ │ ├── [email protected] > > │ │ └─┬ [email protected] > > │ │ └── [email protected] > > │ ├─┬ [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ └── [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ └─┬ [email protected] > > │ │ │ └── [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ └─┬ [email protected] > > │ │ │ └── [email protected] > > │ │ └── [email protected] > > │ ├─┬ [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ └── [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ └── [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ └─┬ [email protected] > > │ │ │ └── [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ ├── [email protected] > > │ │ │ └── [email protected] > > │ │ └─┬ [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ └── [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ └─┬ [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ └── [email protected] > > │ │ ├── [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ └─┬ [email protected] > > │ │ │ └── [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ └── [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ └── [email protected] > > │ │ └─┬ [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ └── [email protected] > > │ │ └── [email protected] > > │ ├─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ └── [email protected] > > │ └─┬ [email protected] > > │ └─┬ [email protected] > > │ └─┬ [email protected] > > │ └── [email protected] > > ├─┬ [email protected] > > │ ├─┬ [email protected] > > │ │ └── [email protected] > > │ └─┬ [email protected] > > │ └─┬ [email protected] > > │ └── [email protected] > > ├─┬ UNMET PEER DEPENDENCY [email protected] > > │ └─┬ [email protected] > > │ └─┬ [email protected] > > │ ├─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ └─┬ [email protected] > > │ │ └── [email protected] > > │ └─┬ [email protected] > > │ ├─┬ [email protected] > > │ │ ├─┬ [email protected] > > │ │ │ ├─┬ [email protected] > > │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ └─┬ [email protected] > > │ │ │ │ │ └── [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ │ │ └── [email protected] > > │ │ │ │ │ │ └── [email protected] > > │ │ │ │ │ └── [email protected] > > │ │ │ │ ├── [email protected] > > │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ └── [email protected] > > │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ └─┬ [email protected] > > │ │ │ │ │ └── [email protected] > > │ │ │ │ └─┬ [email protected] > > │ │ │ │ ├─┬ [email protected] > > │ │ │ │ │ ├── [email protected] > > │ │ │ │ │ └── [email protected] > > │ │ │ │ └── [email protected] > > │ │ │ └─┬ [email protected] > > │ │ │ ├── [email protected] > > │ │ │ ├── [email protected] > > │ │ │ └─┬ [email protected] > > │ │ │ ├── [email protected] > > │ │ │ └─┬ [email protected] > > │ │ │ ├── [email protected] > > │ │ │ └── [email protected] > > │ │ └─┬ [email protected] > > │ │ ├── [email protected] > > │ │ ├── [email protected] > > │ │ ├── [email protected] > > │ │ ├── [email protected] > > │ │ └── [email protected] > > │ └─┬ [email protected] > > │ └─┬ [email protected] > > │ └── [email protected] > > └─┬ [email protected] > > ├─┬ [email protected] > > │ ├─┬ [email protected] > > │ │ └── [email protected] > > │ ├── [email protected] > > │ ├── [email protected] > > │ └─┬ [email protected] > > │ └── [email protected] > > ├── [email protected] > > └── UNMET PEER DEPENDENCY webpack@^1.0.0 || ^2.0.0 || ^3.0.0 > > > > npm WARN enoent ENOENT: no such file or directory, open > > '/root/metron/metron-interface/metron-config/node_modules/broccoli-stew/package.json' > > npm WARN enoent ENOENT: no such file or directory, open > > '/root/metron/metron-interface/metron-config/node_modules/heimdalljs/package.json' > > npm WARN enoent ENOENT: no such file or directory, open > > '/root/metron/metron-interface/metron-config/node_modules/mdurl/package.json' > > npm WARN enoent ENOENT: no such file or directory, open > > '/root/metron/metron-interface/metron-config/node_modules/safe-regex/package.json' > > npm WARN enoent ENOENT: no such file or directory, open > > '/root/metron/metron-interface/metron-config/node_modules/stream-cache/package.json' > > npm WARN @angular/[email protected] requires a peer of > > @angular/[email protected] but none was installed. > > npm WARN @angular/[email protected] requires a peer of > > @angular/[email protected] but none was installed. > > npm WARN @angular/[email protected] requires a peer of @angular/[email protected] > > but none was installed. > > npm WARN @angular/[email protected] requires a peer of > > @angular/[email protected] but none was installed. > > npm WARN @angular/[email protected] requires a peer of > > @angular/[email protected] but none was installed. > > npm WARN @angular/[email protected] requires a peer of > > @angular/[email protected] but none was installed. > > npm WARN @angular/[email protected] requires a peer of > > @angular/[email protected] but none was installed. > > npm WARN [email protected] requires a peer of webpack@^2.0.0 || ^3.0.0 || > > ^4.0.0 but none was installed. > > npm WARN [email protected] requires a peer of webpack@1 || 2 || 3 > > but none was installed. > > npm WARN [email protected] requires a peer of webpack@^1.0.0 || > > ^2.0.0 || ^3.0.0 but none was installed. > > [root@ctg1 metron-config]# npm install angular > > - @angular/[email protected] > > node_modules/@angular-cli/ast-tools/node_modules/@angular/tsc-wrapped > > [email protected] /root/metron/metron-interface/metron-config > > ├── UNMET PEER DEPENDENCY @angular/[email protected] > > ├── UNMET PEER DEPENDENCY @angular/[email protected] > > ├── UNMET PEER DEPENDENCY @angular/[email protected] > > ├── UNMET PEER DEPENDENCY @angular/[email protected] > > └── [email protected] > > > > npm WARN enoent ENOENT: no such file or directory, open > > '/root/metron/metron-interface/metron-config/node_modules/broccoli-stew/package.json' > > npm WARN enoent ENOENT: no such file or directory, open > > '/root/metron/metron-interface/metron-config/node_modules/heimdalljs/package.json' > > npm WARN enoent ENOENT: no such file or directory, open > > '/root/metron/metron-interface/metron-config/node_modules/mdurl/package.json' > > npm WARN enoent ENOENT: no such file or directory, open > > '/root/metron/metron-interface/metron-config/node_modules/safe-regex/package.json' > > npm WARN enoent ENOENT: no such file or directory, open > > '/root/metron/metron-interface/metron-config/node_modules/stream-cache/package.json' > > npm WARN @angular/[email protected] requires a peer of > > @angular/[email protected] but none was installed. > > npm WARN @angular/[email protected] requires a peer of > > @angular/[email protected] but none was installed. > > npm WARN @angular/[email protected] requires a peer of @angular/[email protected] > > but none was installed. > > npm WARN @angular/[email protected] requires a peer of > > @angular/[email protected] but none was installed. > > npm WARN @angular/[email protected] requires a peer of > > @angular/[email protected] but none was installed. > > npm WARN @angular/[email protected] requires a peer of > > @angular/[email protected] but none was installed. > > npm WARN @angular/[email protected] requires a peer of > > @angular/[email protected] but none was installed. > > npm WARN [email protected] requires a peer of webpack@^2.0.0 || ^3.0.0 || > > ^4.0.0 but none was installed. > > npm WARN [email protected] requires a peer of webpack@1 || 2 || 3 > > but none was installed. > > npm WARN [email protected] requires a peer of webpack@^1.0.0 || > > ^2.0.0 || ^3.0.0 but none was installed. > > [root@ctg1 metron-config]# @angular/[email protected] > > -bash: @angular/[email protected]: No such file or directory > > [root@ctg1 metron-config]# npm install angular/[email protected] > > npm ERR! addLocal Could not install > > /root/metron/metron-interface/metron-config/angular/[email protected] > > npm ERR! Linux 3.10.0-693.el7.x86_64 > > npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "angular/[email protected] > > " > > npm ERR! node v6.14.3 > > npm ERR! npm v3.10.10 > > npm ERR! path > > /root/metron/metron-interface/metron-config/angular/[email protected] > > npm ERR! code ENOENT > > npm ERR! errno -2 > > npm ERR! syscall open > > > > npm ERR! enoent ENOENT: no such file or directory, open > > '/root/metron/metron-interface/metron-config/angular/[email protected]' > > npm ERR! enoent ENOENT: no such file or directory, open > > '/root/metron/metron-interface/metron-config/angular/[email protected]' > > npm ERR! enoent This is most likely not a problem with npm itself > > npm ERR! enoent and is related to npm not being able to find a file. > > npm ERR! enoent > > > > npm ERR! Please include the following file with any support request: > > npm ERR! /root/metron/metron-interface/metron-config/npm-debug.log > > > > -- > > With Regards > > Farrukh Naveed Anjum > > >
