title: ng build has no permission
body: <p>I am autoconfiguring the CodeBuild for my Spring boot + Angular 4 project, where i use maven-frontend-plugin to install node , npm. Since it installs them locally my ng build is throwing an error like below. Any help?</p>
  
  <pre><code>[INFO] &gt; ng build --prod --no-aot --base-href --allow-root
  [ERROR] sh: 1: ng: Permission denied
  </code></pre>
  
  <p>here is my pom part</p>
  
  <pre><code>&lt;plugin&gt;
       &lt;groupId&gt;com.github.eirslett&lt;/groupId&gt;
       &lt;artifactId&gt;frontend-maven-plugin&lt;/artifactId&gt;
       &lt;version&gt;1.6&lt;/version&gt;
       &lt;configuration&gt;
          &lt;workingDirectory&gt;${project.basedir}/src/main/resources/ui/&lt;/workingDirectory&gt;
      &lt;/configuration&gt;
       &lt;executions&gt;
         &lt;execution&gt;
           &lt;id&gt;install node and npm&lt;/id&gt;
           &lt;goals&gt;
             &lt;goal&gt;install-node-and-npm&lt;/goal&gt;
           &lt;/goals&gt;
           &lt;configuration&gt;
             &lt;nodeVersion&gt;v9.0.0&lt;/nodeVersion&gt;               
           &lt;/configuration&gt;
         &lt;/execution&gt;
  
         &lt;execution&gt;
           &lt;id&gt;npm install&lt;/id&gt;
           &lt;goals&gt;
             &lt;goal&gt;npm&lt;/goal&gt;
           &lt;/goals&gt;
           &lt;configuration&gt;
             &lt;arguments&gt;install -g&lt;/arguments&gt;
           &lt;/configuration&gt;
         &lt;/execution&gt;
  
         &lt;execution&gt;
           &lt;id&gt;prod&lt;/id&gt;
           &lt;goals&gt;
             &lt;goal&gt;npm&lt;/goal&gt;
           &lt;/goals&gt;
           &lt;configuration&gt;
             &lt;arguments&gt;run-script prod&lt;/arguments&gt;
           &lt;/configuration&gt;
           &lt;phase&gt;generate-resources&lt;/phase&gt;
         &lt;/execution&gt;
       &lt;/executions&gt;
     &lt;/plugin&gt;     
  </code></pre>