'react-scripts' is not recognized as an internal or external command : <p>I've got a maven project, within which is JavaScript project cloned as a git sub-module. So the directory structure looks something like</p>

<p><code>mavenapp/src/main/javascript/[npm project files]</code></p>

<p>inside my package.json, the test looks like this : <code>"test": "react-scripts test --env=jsdom",</code></p>

<p>but when I try to run npm test is says </p>

<blockquote>
  <p>'react-scripts' is not recognized as an internal or external command,</p>
</blockquote>

<p>Interestingly when I clone the javascript project independently I don't get this error. I've tried re-running <code>npm install</code>. </p>

<p><code>npm version : 5.5.1</code></p>

<p><code>node version : 9.3.0</code></p>
