<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Adrian,</p>
    <p>the npm command is actually installed inside the image, the
      collection is just not enabled in your case.</p>
    <p>With `RUN bash -c "npm --version"` instead:</p>
    <p>Sending build context to Docker daemon 478.7 kB<br>
      Step 1/3 : FROM registry.access.redhat.com/rhscl/nodejs-8-rhel7<br>
      Trying to pull repository
      registry.access.redhat.com/rhscl/nodejs-8-rhel7 ... <br>
sha256:66ae3f2d4cd53e1fa232018079afe9ccb27f451d932b3a57d158609d0ecfbaa2:
      Pulling from registry.access.redhat.com/rhscl/nodejs-8-rhel7<br>
      9a32f102e677: Already exists <br>
      b8aa42cec17a: Already exists <br>
      84fbac7bf4f5: Pull complete <br>
      e347f5c3e6de: Pull complete <br>
      d7205639c454: Pull complete <br>
      Digest:
      sha256:66ae3f2d4cd53e1fa232018079afe9ccb27f451d932b3a57d158609d0ecfbaa2<br>
      Status: Downloaded newer image for
      registry.access.redhat.com/rhscl/nodejs-8-rhel7:latest<br>
       ---> 505e241c8113<br>
      Step 2/3 : EXPOSE 8080<br>
       ---> Running in 83a826e5a103<br>
       ---> 9f3d2ed35228<br>
      Removing intermediate container 83a826e5a103<br>
      Step 3/3 : RUN bash -c "npm --version"<br>
       ---> Running in b97f25fa5fba<br>
      5.3.0<br>
       ---> 2c1e9751d2d5<br>
      Removing intermediate container b97f25fa5fba<br>
      Successfully built 2c1e9751d2d5</p>
    <p>Hope this helps,<br>
      Petr<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 02/15/2018 11:32 AM, Höhn Adrian
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:394677EBE71D7C4BBC0DD0330A98A87960D04418@wwfemr21.chres1.doleni.net">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Arial",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"
          style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Hi</span><span lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"
          style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">I try to use your s2i image nodejs-8-rhel7 with
            the following Dockerfile config on OpenShift.</span><span
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#2B2B2B"><span
            style="font-size:9.0pt;font-family:"Courier
            New";color:#A9B7C6" lang="EN-US">FROM
            <a
              href="http://registry.access.redhat.com/rhscl/nodejs-8-rhel7"
              target="_blank" moz-do-not-send="true">
              registry.access.redhat.com/rhscl/nodejs-8-rhel7</a><br>
            EXPOSE 8080<br>
            <br>
            RUN npm --version</span><span lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"
          style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">But when I try to build it on the Openshift
            platform I get the following error:
            <b><span style="color:red">npm: command not found</span></b></span><span
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"
          style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Can you explain me why npm cannot be found on
            this image and what I have to do to make it work? I expect
            that npm is part of a node image, not?</span><span
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"
          style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Thanks for your support,</span><span
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"
          style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Adrian</span><span lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Openshift Logfile:<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Pulling image
            registry.access.redhat.com/rhscl/nodejs-8-rhel7 ...<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Pulled 2/5 layers, 41% complete<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Pulled 3/5 layers, 63% complete<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Pulled 4/5 layers, 84% complete<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Pulled 5/5 layers, 100% complete<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Extracting<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Step 1 : FROM
            registry.access.redhat.com/rhscl/nodejs-8-rhel7<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Trying to pull repository
            registry.access.redhat.com/rhscl/nodejs-8-rhel7 ...
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">sha256:66ae3f2d4cd53e1fa232018079afe9ccb27f451d932b3a57d158609d0ecfbaa2:
            Pulling from registry.access.redhat.com/rhscl/nodejs-8-rhel7<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">9a32f102e677: Already exists<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">b8aa42cec17a: Already exists<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">84fbac7bf4f5: Already exists<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">e347f5c3e6de: Already exists<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">d7205639c454: Already exists<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Digest:
            sha256:66ae3f2d4cd53e1fa232018079afe9ccb27f451d932b3a57d158609d0ecfbaa2<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Status: Image is up to date for
            registry.access.redhat.com/rhscl/nodejs-8-rhel7:latest<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">---> 505e241c8113<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Step 2 : ENV ***<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">---> Running in 8bd5877d7e3b<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">---> 18f0b2af283a<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Removing intermediate container 8bd5877d7e3b<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Step 3 : EXPOSE 8080<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">---> Running in 6ec866f0d02c<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">---> 479b9e490fab<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Removing intermediate container 6ec866f0d02c<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Step 4 : RUN npm --version<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">---> Running in a00f61761e3a<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">/bin/sh: npm: command not found<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">error: build error: The command '/bin/sh -c npm
            --version' returned a non-zero code: 127<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US"><o:p> </o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SCLorg mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SCLorg@redhat.com">SCLorg@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/sclorg">https://www.redhat.com/mailman/listinfo/sclorg</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>