<div dir="ltr"><div>Hey Chris,</div><div><br></div><div>When you run `$ npm install` or even `$ node -v` you are using the globally installed binary as opposed to the local one, even if you are within the directory, as you can see here:</div><div><br></div><div>npm ERR! argv &quot;/usr/local/bin/node&quot; &quot;/usr/local/bin/npm&quot; &quot;install&quot; &quot;--color=false&quot;<br></div><div><br></div><div>The deprecation warning at the end of the build log should not be enough to cause a build failure. To get a more detailed error regarding the build failure I&#39;d try using the local binary from within the `war` directory you were in with `$ node/npm install --color=false`. You can also test that it&#39;s using the correct binary with `$ node/npm -v` or `$ node/node -v`. What is causing the build to fail could be several things, but I always recommend starting with a clean slate before each test build -- try running the following before triggering your build again:</div><div><br></div><div>$ rm -rf node_modules/<br></div><div>$ npm cache clean</div><div><br></div><div>Feel free to ping me on IRC if that doesn&#39;t help you get a better idea of what&#39;s going on. Hope it helps! :)</div><div><br></div>Rachel Yordán<div>IRC: ryordan<br><div>GH: <a href="https://github.com/kahboom">@kahboom</a></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 15, 2016 at 10:59 AM, Christopher Stolte <span dir="ltr">&lt;<a href="mailto:cstolte@ebsco.com" target="_blank">cstolte@ebsco.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello,</p>
<p><br>
</p>
<p>I am trying to build apiman-1.2.6.Final on Redhat.  Server details:</p>
<p><br>
</p>
<p></p>
<p><span>$ uname -or</span></p>
<p><span>3.10.0-229.el7.x86_64 GNU/Linux</span></p>
<p><span><br>
</span></p>
<p><span>$ java -version</span></p>
<p><span>openjdk version &quot;1.8.0_91&quot;</span></p>
<p><span><br>
</span></p>
<p><span>The build fails at this point:</span></p>
<p><span><br>
</span></p>
<p><span></span></p>
<p><span style="font-size:10pt">[INFO] --- frontend-maven-plugin:0.0.27:install-node-and-npm (install node and npm) @ apiman-manager-ui-war ---</span></p>

<p></p>
<p><span></span></p>
<pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);font-size:13px"><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Found proxies: []</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Installing node version v5.6.0</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Creating temporary directory /home/cloud-user/apiman-build/manager/ui/war/node_tmp</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Downloading Node.js from <a href="https://nodejs.org/dist/v5.6.0/node-v5.6.0-linux-x64.tar.gz" target="_blank">https://nodejs.org/dist/v5.6.0/node-v5.6.0-linux-x64.tar.gz</a> to /home/cloud-user/apiman-build/manager/ui/war/node_tmp/node.tar.gz</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] No proxies configured</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] No proxy was configured, downloading directly</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Extracting Node.js files in node_tmp</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Unpacking /home/cloud-user/apiman-build/manager/ui/war/node_tmp/node.tar.gz into /home/cloud-user/apiman-build/manager/ui/war/node_tmp</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Moving node binary to /home/cloud-user/apiman-build/manager/ui/war/node/node</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Deleting temporary directory /home/cloud-user/apiman-build/manager/ui/war/node_tmp</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Installed node locally.</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Installing npm version 3.6.0</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Downloading NPM from <a href="http://registry.npmjs.org/npm/-/npm-3.6.0.tgz" target="_blank">http://registry.npmjs.org/npm/-/npm-3.6.0.tgz</a> to /home/cloud-user/apiman-build/manager/ui/war/npm.tar.gz</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] No proxies configured</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] No proxy was configured, downloading directly</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Extracting NPM files in node/</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Unpacking /home/cloud-user/apiman-build/manager/ui/war/npm.tar.gz into /home/cloud-user/apiman-build/manager/ui/war/node/node_modules</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Installed NPM locally.</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] </span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] --- frontend-maven-plugin:0.0.27:npm (npm install) @ apiman-manager-ui-war ---</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Found proxies: []</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[INFO] Running &#39;npm install --color=false&#39; in /home/cloud-user/apiman-build/manager/ui/war</span></p><p><span style="font-family:Calibri,Arial,Helvetica,sans-serif">[ERROR] npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases &gt;= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use &#39;npm ls graceful-fs&#39; to find it in the tree.</span></p><span style="color:rgb(204,0,0);font-weight:bold"></span></pre>
<br>

<p></p>
<p><span>Node/npm appear to be globally installed:</span></p>
<p><span><br>
</span></p>
<p><span></span></p>
<p><span>$ npm -v</span></p>
<p><span>2.15.1</span></p>
<p><span>$ node -v</span></p>
<p><span>v4.4.3</span></p>
<p><span><br>
</span></p>
<p><span><span style="font-family:Calibri,Arial,Helvetica,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols;font-size:16px">I then tried to execute that npm command
 from the stated directory, and got this:</span><br>
</span></p>
<p><span><span style="font-family:Calibri,Arial,Helvetica,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols;font-size:16px"><br>
</span></span></p>
<p><span>$ cd manager/ui/war</span></p>
<p><span>$ npm install --color=false</span></p>
<p><span>npm WARN peerDependencies The peer dependency marked@^0.3.3 included from marked-terminal will no</span></p>
<p><span>npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency </span></p>
<p><span>npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.</span></p>
<p><span>npm WARN prefer global marked@0.3.5 should be installed with -g</span></p>
<p><span>npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases &gt;= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use &#39;npm ls graceful-fs&#39; to find it in the tree.</span></p>
<p><span>npm WARN peerDependencies The peer dependency grunt@&gt;=0.4.0 included from grunt-contrib-cssmin will no</span></p>
<p><span>npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency </span></p>
<p><span>npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.</span></p>
<p><span>npm WARN peerDependencies The peer dependency grunt@~0.4.1 included from grunt-jekyll will no</span></p>
<p><span>npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency </span></p>
<p><span>npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.</span></p>
<p><span>npm WARN peerDependencies The peer dependency grunt@~0.4.5 included from grunt-contrib-less will no</span></p>
<p><span>npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency </span></p>
<p><span>npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.</span></p>
<p><span>npm WARN peerDependencies The peer dependency grunt@~0.4.0 included from grunt-contrib-uglify will no</span></p>
<p><span>npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency </span></p>
<p><span>npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.</span></p>
<p><span>npm WARN peerDependencies The peer dependency grunt@~0.4.0 included from grunt-contrib-connect will no</span></p>
<p><span>npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency </span></p>
<p><span>npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.</span></p>
<p><span>npm WARN deprecated lodash@2.4.1: lodash@&lt;3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.</span></p>
<p><span>npm WARN peerDependencies The peer dependency grunt@~0.4.0 included from grunt-contrib-watch will no</span></p>
<p><span>npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency </span></p>
<p><span>npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.</span></p>
<p><span>npm ERR! Linux 3.10.0-229.el7.x86_64</span></p>
<p><span>npm ERR! argv &quot;/usr/local/bin/node&quot; &quot;/usr/local/bin/npm&quot; &quot;install&quot; &quot;--color=false&quot;</span></p>
<p><span>npm ERR! node v4.4.3</span></p>
<p><span>npm ERR! npm  v2.15.1</span></p>
<p><span>npm ERR! code EBADPLATFORM</span></p>
<p><span>npm ERR! notsup Unsupported</span></p>
<p><span>npm ERR! notsup Not compatible with your operating system or architecture: fsevents@1.0.8</span></p>
<p><span>npm ERR! notsup Valid OS:    darwin</span></p>
<p><span>npm ERR! notsup Valid Arch:  any</span></p>
<p><span>npm ERR! notsup Actual OS:   linux</span></p>
<p><span>npm ERR! notsup Actual Arch: x64</span></p>
<p><span>npm ERR! Please include the following file with any support request:</span></p>
<p><span>npm ERR!     /home/cloud-user/apiman-build/manager/ui/war/npm-debug.log</span></p>
<br>

<p></p>
<p>Does anyone have an idea as to what is going on here? I see some threads about the maven plugin that installs node/npm locally (<a href="https://issues.jboss.org/browse/APIMAN-771" target="_blank">https://issues.jboss.org/browse/APIMAN-771</a>),
 but it isn&#39;t quite what&#39;s going on here. I&#39;m especially confused about versions, since the plugin installed versions [5.6.0/3.6.0] locally but the above error message is referencing the globally installed versions [4.4.3/2.15.1].</p>
<p><br>
</p>
<p>Any help much appreciated!</p>
<p>Chris</p>
<p><span><br>
</span></p>
<br>
<p></p>
</div>
</div>

<br>_______________________________________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/apiman-user</a><br>
<br></blockquote></div><br></div>