Re: failed to build nifi 1.8.0-SNAPSHOT on OSX high sierra

2018-08-16 Thread Charlie Meyer
Thanks Scott, that fixed it!

On Thu, Aug 16, 2018 at 9:56 AM Scott Aslan  wrote:

> Hi Charlie,
>
> Sorry to hear you are having issues building NiFi. The
> frontend-maven-plugin has been designed to use a local installation of
> node. Using a globally installed version has been requested before
>  but the
> developer's position is that node does not take up much space and will only
> download if missing. Installing node locally allows developers that have
> not installed node globally or are using different versions to build the
> project without having to do anything more complicated than mvn clean
> install.
>
> I assume you used brew to install node?
>
> I am wondering if there is a permission issue and if you uninstall node
> from your machine are you able to successfully build? Try brew uninstall
> --force node and then try mvn clean install.
>
> -Scott
>
> On Thu, Aug 16, 2018 at 10:27 AM Charlie Meyer <
> charlie.me...@civitaslearning.com> wrote:
>
> > Hello,
> >
> > I'm attempting to build 1.8.0-snap on osx high sierra and am running into
> > the following nodejs error:
> >
> > [INFO] Running 'npm --cache-min Infinity install' in
> >
> >
> /Users/cmeyer/opt/nifi/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-jolt-transform-json-ui/target/frontend-working-directory
> > [ERROR] module.js:549
> > [ERROR] throw err;
> > [ERROR] ^
> > [ERROR]
> > [ERROR] Error: Cannot find module '../lib/utils/unsupported.js'
> > [ERROR] at Function.Module._resolveFilename (module.js:547:15)
> > [ERROR] at Function.Module._load (module.js:474:25)
> > [ERROR] at Module.require (module.js:596:17)
> > [ERROR] at require (internal/module.js:11:18)
> > [ERROR] at
> >
> >
> /Users/cmeyer/opt/nifi/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-jolt-transform-json-ui/target/frontend-working-directory/node/node_modules/npm/bin/npm-cli.js:19:21
> > [ERROR] at Object.
> >
> >
> (/Users/cmeyer/opt/nifi/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-jolt-transform-json-ui/target/frontend-working-directory/node/node_modules/npm/bin/npm-cli.js:92:3)
> > [ERROR] at Module._compile (module.js:652:30)
> > [ERROR] at Object.Module._extensions..js (module.js:663:10)
> > [ERROR] at Module.load (module.js:565:32)
> > [ERROR] at tryModuleLoad (module.js:505:12)
> > ...
> > ...
> > ...
> > [ERROR] Failed to execute goal
> > com.github.eirslett:frontend-maven-plugin:1.4:npm (npm install) on
> project
> > nifi-jolt-transform-json-ui: Failed to run task: 'npm --cache-min
> Infinity
> > install' failed. org.apache.commons.exec.ExecuteException: Process exited
> > with an error: 1 (Exit value: 1) -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e
> > switch.
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please read the following articles:
> > [ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > [ERROR]
> > [ERROR] After correcting the problems, you can resume the build with the
> > command
> > [ERROR]   mvn  -rf :nifi-jolt-transform-json-ui
> >
> > I tried solutions suggested online such as reinstalling node, etc but
> have
> > still not had luck. I've been able to replicate the error on 2 different
> > machines, but only on osx (was able to build fine on ubuntu). Is this a
> > known issue and is there a workaround?
> >
> > thanks!
> >
>


Re: failed to build nifi 1.8.0-SNAPSHOT on OSX high sierra

2018-08-16 Thread Scott Aslan
Hi Charlie,

Sorry to hear you are having issues building NiFi. The
frontend-maven-plugin has been designed to use a local installation of
node. Using a globally installed version has been requested before
 but the
developer's position is that node does not take up much space and will only
download if missing. Installing node locally allows developers that have
not installed node globally or are using different versions to build the
project without having to do anything more complicated than mvn clean
install.

I assume you used brew to install node?

I am wondering if there is a permission issue and if you uninstall node
from your machine are you able to successfully build? Try brew uninstall
--force node and then try mvn clean install.

-Scott

On Thu, Aug 16, 2018 at 10:27 AM Charlie Meyer <
charlie.me...@civitaslearning.com> wrote:

> Hello,
>
> I'm attempting to build 1.8.0-snap on osx high sierra and am running into
> the following nodejs error:
>
> [INFO] Running 'npm --cache-min Infinity install' in
>
> /Users/cmeyer/opt/nifi/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-jolt-transform-json-ui/target/frontend-working-directory
> [ERROR] module.js:549
> [ERROR] throw err;
> [ERROR] ^
> [ERROR]
> [ERROR] Error: Cannot find module '../lib/utils/unsupported.js'
> [ERROR] at Function.Module._resolveFilename (module.js:547:15)
> [ERROR] at Function.Module._load (module.js:474:25)
> [ERROR] at Module.require (module.js:596:17)
> [ERROR] at require (internal/module.js:11:18)
> [ERROR] at
>
> /Users/cmeyer/opt/nifi/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-jolt-transform-json-ui/target/frontend-working-directory/node/node_modules/npm/bin/npm-cli.js:19:21
> [ERROR] at Object.
>
> (/Users/cmeyer/opt/nifi/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-jolt-transform-json-ui/target/frontend-working-directory/node/node_modules/npm/bin/npm-cli.js:92:3)
> [ERROR] at Module._compile (module.js:652:30)
> [ERROR] at Object.Module._extensions..js (module.js:663:10)
> [ERROR] at Module.load (module.js:565:32)
> [ERROR] at tryModuleLoad (module.js:505:12)
> ...
> ...
> ...
> [ERROR] Failed to execute goal
> com.github.eirslett:frontend-maven-plugin:1.4:npm (npm install) on project
> nifi-jolt-transform-json-ui: Failed to run task: 'npm --cache-min Infinity
> install' failed. org.apache.commons.exec.ExecuteException: Process exited
> with an error: 1 (Exit value: 1) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn  -rf :nifi-jolt-transform-json-ui
>
> I tried solutions suggested online such as reinstalling node, etc but have
> still not had luck. I've been able to replicate the error on 2 different
> machines, but only on osx (was able to build fine on ubuntu). Is this a
> known issue and is there a workaround?
>
> thanks!
>


failed to build nifi 1.8.0-SNAPSHOT on OSX high sierra

2018-08-16 Thread Charlie Meyer
Hello,

I'm attempting to build 1.8.0-snap on osx high sierra and am running into
the following nodejs error:

[INFO] Running 'npm --cache-min Infinity install' in
/Users/cmeyer/opt/nifi/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-jolt-transform-json-ui/target/frontend-working-directory
[ERROR] module.js:549
[ERROR] throw err;
[ERROR] ^
[ERROR]
[ERROR] Error: Cannot find module '../lib/utils/unsupported.js'
[ERROR] at Function.Module._resolveFilename (module.js:547:15)
[ERROR] at Function.Module._load (module.js:474:25)
[ERROR] at Module.require (module.js:596:17)
[ERROR] at require (internal/module.js:11:18)
[ERROR] at
/Users/cmeyer/opt/nifi/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-jolt-transform-json-ui/target/frontend-working-directory/node/node_modules/npm/bin/npm-cli.js:19:21
[ERROR] at Object.
(/Users/cmeyer/opt/nifi/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-jolt-transform-json-ui/target/frontend-working-directory/node/node_modules/npm/bin/npm-cli.js:92:3)
[ERROR] at Module._compile (module.js:652:30)
[ERROR] at Object.Module._extensions..js (module.js:663:10)
[ERROR] at Module.load (module.js:565:32)
[ERROR] at tryModuleLoad (module.js:505:12)
...
...
...
[ERROR] Failed to execute goal
com.github.eirslett:frontend-maven-plugin:1.4:npm (npm install) on project
nifi-jolt-transform-json-ui: Failed to run task: 'npm --cache-min Infinity
install' failed. org.apache.commons.exec.ExecuteException: Process exited
with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn  -rf :nifi-jolt-transform-json-ui

I tried solutions suggested online such as reinstalling node, etc but have
still not had luck. I've been able to replicate the error on 2 different
machines, but only on osx (was able to build fine on ubuntu). Is this a
known issue and is there a workaround?

thanks!