Github user nickwallen commented on the issue:

    https://github.com/apache/metron/pull/620
  
    Did anything else change around dependencies that need installed?  I cannot 
get the `metron-alerts` project to build.  The only reference I see is Node > 
7.8.
    
    ```
    $ mvn clean install 
    ...
    
    [INFO] ERROR in ./src/main.ts
    [INFO] Module not found: Error: Can't resolve 
'./$$_gendir/app/app.module.ngfactory' in 
'/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/src'
    [INFO]  @ ./src/main.ts 21:0-74
    [INFO]  @ multi ./src/main.ts
    [INFO]
    [INFO] ERROR in ./src/$$_gendir async
    [INFO] Module not found: Error: Can't resolve 
'/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/src/$$_gendir/app/alerts/alerts-list/alerts-list.module.ngfactory.ts'
 in 
'/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/src/$$_gendir'
    [INFO]  @ ./src/$$_gendir async
    [INFO]  @ ./~/@angular/core/@angular/core.es5.js
    [INFO]  @ ./src/main.ts
    [INFO]  @ multi ./src/main.ts
    [INFO]
    [INFO] ERROR in ./src/$$_gendir async
    [INFO] Module not found: Error: Can't resolve 
'/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/src/$$_gendir/app/alerts/save-search/save-search.module.ngfactory.ts'
 in 
'/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/src/$$_gendir'
    [INFO]  @ ./src/$$_gendir async
    [INFO]  @ ./~/@angular/core/@angular/core.es5.js
    [INFO]  @ ./src/main.ts
    [INFO]  @ multi ./src/main.ts
    [INFO]
    [INFO] ERROR in ./src/$$_gendir async
    [INFO] Module not found: Error: Can't resolve 
'/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/src/$$_gendir/app/alerts/saved-searches/saved-searches.module.ngfactory.ts'
 in 
'/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/src/$$_gendir'
    [INFO]  @ ./src/$$_gendir async
    [INFO]  @ ./~/@angular/core/@angular/core.es5.js
    [INFO]  @ ./src/main.ts
    [INFO]  @ multi ./src/main.ts
    [ERROR]
    [ERROR] npm ERR! Darwin 16.7.0
    [ERROR] npm ERR! argv 
"/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/node/node" 
"/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/node/node_modules/npm/bin/npm-cli.js"
 "run" "build"
    [ERROR] npm ERR! node v7.10.0
    [ERROR] npm ERR! npm  v4.2.0
    [ERROR] npm ERR! code ELIFECYCLE
    [ERROR] npm ERR! errno 1
    [ERROR] npm ERR! [email protected] build: 
`./node_modules/@angular/cli/bin/ng build -prod`
    [ERROR] npm ERR! Exit status 1
    [ERROR] npm ERR!
    [ERROR] npm ERR! Failed at the [email protected] build script 
'./node_modules/@angular/cli/bin/ng build -prod'.
    [ERROR] npm ERR! Make sure you have the latest version of node.js and npm 
installed.
    [ERROR] npm ERR! If you do, this is most likely a problem with the 
metron-alerts package,
    [ERROR] npm ERR! not with npm itself.
    [ERROR] npm ERR! Tell the author that this fails on your system:
    [ERROR] npm ERR!     ./node_modules/@angular/cli/bin/ng build -prod
    [ERROR] npm ERR! You can get information on how to open an issue for this 
project with:
    [ERROR] npm ERR!     npm bugs metron-alerts
    [ERROR] npm ERR! Or if that isn't available, you can get their info via:
    [ERROR] npm ERR!     npm owner ls metron-alerts
    [ERROR] npm ERR! There is likely additional logging output above.
    [ERROR]
    [ERROR] npm ERR! Please include the following file with any support request:
    [ERROR] npm ERR!     
/Users/nallen/.npm/_logs/2017-07-24T18_40_10_074Z-debug.log
    ```
    
    Cracking open the debug log referenced gives me this.
    ```
    0 info it worked if it ends with ok
    1 verbose cli [ 
'/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/node/node',
    1 verbose cli   
'/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/node/node_modules/npm/bin/npm-cli.js',
    1 verbose cli   'run',
    1 verbose cli   'build' ]
    2 info using [email protected]
    3 info using [email protected]
    4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
    5 info lifecycle [email protected]~prebuild: [email protected]
    6 silly lifecycle [email protected]~prebuild: no script for prebuild, 
continuing
    7 info lifecycle [email protected]~build: [email protected]
    8 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
    9 verbose lifecycle [email protected]~build: PATH: 
/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/node/node_modules/npm/bin/node-gyp-bin:/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/node_modules/.bin:/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/node:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/nallen/bin:/Users/nallen/bin:/usr/local/Cellar/kafka/0.10.1.1//bin:/usr/local/Cellar/apache-spark/2.1.1/libexec/bin:
    10 verbose lifecycle [email protected]~build: CWD: 
/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts
    11 silly lifecycle [email protected]~build: Args: [ '-c', 
'./node_modules/@angular/cli/bin/ng build -prod' ]
    12 silly lifecycle [email protected]~build: Returned: code: 1  signal: 
null
    13 info lifecycle [email protected]~build: Failed to exec build script
    14 verbose stack Error: [email protected] build: 
`./node_modules/@angular/cli/bin/ng build -prod`
    14 verbose stack Exit status 1
    14 verbose stack     at EventEmitter.<anonymous> 
(/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/node/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.<anonymous> 
(/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/node/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 [email protected]
    16 verbose cwd /Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts
    17 error Darwin 16.7.0
    18 error argv 
"/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/node/node" 
"/Users/nallen/tmp/metron-pr620/metron-interface/metron-alerts/node/node_modules/npm/bin/npm-cli.js"
 "run" "build"
    19 error node v7.10.0
    20 error npm  v4.2.0
    21 error code ELIFECYCLE
    22 error errno 1
    23 error [email protected] build: `./node_modules/@angular/cli/bin/ng 
build -prod`
    23 error Exit status 1
    24 error Failed at the [email protected] build script 
'./node_modules/@angular/cli/bin/ng build -prod'.
    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 metron-alerts 
package,
    24 error not with npm itself.
    24 error Tell the author that this fails on your system:
    24 error     ./node_modules/@angular/cli/bin/ng build -prod
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to