title: How to run npm.cmd?
body: <p>I stumbled over this discussion:
  <a href="https://github.com/nodejs/node/issues/3675" rel="nofollow noreferrer">https://github.com/nodejs/node/issues/3675</a></p>
  
  <p>when googling this error:</p>
  
  <pre><code>{ Error: spawn npm ENOENT
      at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
      at onErrorNT (internal/child_process.js:415:16)
      at process._tickCallback (internal/process/next_tick.js:63:19)
    errno: 'ENOENT',
    code: 'ENOENT',
    syscall: 'spawn npm',
    path: 'npm',
    spawnargs: [ 'root', '-g' ] }
  </code></pre>
  
  <p>but I dont know how to access this npm.cmd. I was on their site <a href="https://www.npmjs.com/package/node-cmd" rel="nofollow noreferrer">https://www.npmjs.com/package/node-cmd</a>
  and I installed it with npm install node-cmd 
  but Im pretty clueless how to run it, Im getting errors like this when typing </p>
  
  <pre><code>npm run node-cmd
  
  npm ERR! path D:\nodeJS\node-v10.16.0-win-x64\package.json
  npm ERR! code ENOENT
  npm ERR! errno -4058
  npm ERR! syscall open
  npm ERR! enoent ENOENT: no such file or directory, open 'D:\nodeJS\node-v10.16.0-win-x64\package.json'
  npm ERR! enoent This is related to npm not being able to find a file.
  </code></pre>
  
  <p>Basically, I want to run this node-cmd inside my project so I can (hopefully) execute:</p>
  
  <pre><code>npx webpack-cli init
  </code></pre>
  
  <p>successfully</p>