title: Trying to run npm commands from Python file...runs the first npm command but causes error for the next npm command. Running this is VS Code terminal
body: <pre><code>    #import necesscary libraries
      from git import Repo
      import os
      import shutil
      
      git_dir = &quot;https://github.com/devias-io/material-kit-react.git&quot; #git directory
      local_dir = &quot;C:\\Users\\A\\Desktop\\Internship\\git_clone\\data\\&quot; #local 
      directory to clone the file with the data folder
      practice_dir = &quot;C:\\Users\\A\\Desktop\\Internship\\internship-forms-trial\\&quot; 
      #practice directory
      
      
      shutil.rmtree(local_dir) #removes the data folder if one exists --cloning cannot take 
      place in a folder that has files
      os.makedirs(local_dir) #makes a data folder to clone the data into
      
      clone = Repo.clone_from(git_dir, local_dir ) #cloning process
      
      
      change_dir = os.chdir(local_dir) #changing directory to the local directory
      current_dir = os.getcwd()
      print(&quot;Current directory: &quot;, current_dir)
      
      npm_install = os.system('cmd /k &quot;npm i&quot;') #npm install command to install modules
      npm_build = os.system('cmd /k &quot;npm run build&quot;' ) #npm build command to build the app
      serve = os.system('cmd/k &quot;serve -s build&quot;' ) #serve to deploy onto static server
      open_website = os.system('cmd/k &quot;start chrome http://localhost:3000&quot;') #opens up the 
      webapp on local host
      
      
      
      ## for the github file above instead of npm_build use &quot;npm run dev&quot; 
       ##https://github.com/devias-io/material-kit-react or uncomment and use the code below. 
      ##npm_dev = os.system('cmd /k &quot;npm run dev&quot;' )
  </code></pre>
  <p>The error I get is the one below:</p>
  <pre><code>    C:\Users\A\Desktop\Internship\git_clone\data&gt;npm_dev = 
      os.system('cmd /k &quot;npm 
      run dev&quot;' )
      'npm_dev' is not recognized as an internal or external command,
      operable program or batch file.
  </code></pre>
  <p>This code works for the first npm command - npm_install but when I try to run the npm_dev command it fails and produces me the error above.</p>