title: npm and other modules commands not working
body: <ul>
  <li><strong>Note:</strong> I am on Windows 10 64 bit running the latest LTS Node build.</li>
  </ul>
  
  <p>It all started when I tried running the command <code>npm i -g create-react-app</code> and I get a message saying that npm is not a command.</p>
  
  <p><a href="https://i.stack.imgur.com/Zxdxb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zxdxb.png" alt="npm not a command"></a></p>
  
  <p>I checked my <strong>PATH</strong> and I believe I have the proper directories in there.</p>
  
  <p><a href="https://i.stack.imgur.com/jKR2x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jKR2x.png" alt="path"></a></p>
  
  <p>I navigated to the directory of npm and tried running the command again, but it still didn't work. I found that the command <code>npm.cmd</code> worked in any directory. So tried running <code>npm.cmd i -g create-react-app</code> and that worked! I also had to use the the command <code>create-react-app.cmd my-app</code>, instead of <code>create-react-app my-app</code>. I thought I was set and I could just use those <code>.cmd</code> commands for the things I needed to do; however, when I tried to run the command <code>create-react-app.cmd my-app</code> and got this as a result: </p>
  
  <p><a href="https://i.stack.imgur.com/phBz6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/phBz6.png" alt="enter image description here"></a></p>
  
  <p>I have looked in the file that is ran when using this command <code>create-react-app.cmd my-app</code> and there is no sign of <code>npm</code> being called. Turns out Node is being called in that file with the command below. I know this because when I run it by itself and I get the same output to the console seen in the previous image. </p>
  
  <p><code>"node"  "C:\Users\Allen\AppData\Roaming\npm\\node_modules\create-react-app\index.js" my-app</code> 
  it was called in the <code>create-react-app.cmd</code> file like this <code>"%_prog%"  "%dp0%\node_modules\create-react-app\index.js" %*</code></p>
  
  <p>I am at a loss. I could continue down this rabbit hole and try and find the node file that is calling npm and change it to npm.cmd but I would rather find a way to get the npm and create-react-app commands working as they are suppose to. At the very least I can just spin up a VM and work in that. It is just annoying that I can't get Node to work properly for me.</p>