title: How do I serve my javascript app locally on Linux Mint
body: <p>I'm currently following a tutorial, and I've made sure to follow each and every step. I'm trying to locally host my javascript app at localhost:3000. However, I'm unable to do so, and whenever I try to run <code>npm run dev</code> I get the following error log:</p>
  <pre><code>0 info it worked if it ends with ok
  1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'dev' ]
  2 info using npm@6.14.4
  3 info using node@v10.19.0
  4 verbose run-script [ 'predev', 'dev', 'postdev' ]
  5 info lifecycle personalwebsite@0.0.0~predev: personalwebsite@0.0.0
  6 info lifecycle personalwebsite@0.0.0~dev: personalwebsite@0.0.0
  7 verbose lifecycle personalwebsite@0.0.0~dev: unsafe-perm in lifecycle true
  8 verbose lifecycle personalwebsite@0.0.0~dev: PATH: /usr/share/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/omar-backup/Desktop/MrBoogle.github.io/personalWebsite/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
  9 verbose lifecycle personalwebsite@0.0.0~dev: CWD: /home/omar-backup/Desktop/MrBoogle.github.io/personalWebsite
  10 silly lifecycle personalwebsite@0.0.0~dev: Args: [ '-c', 'vite' ]
  11 silly lifecycle personalwebsite@0.0.0~dev: Returned: code: 1  signal: null
  12 info lifecycle personalwebsite@0.0.0~dev: Failed to exec dev script
  13 verbose stack Error: personalwebsite@0.0.0 dev: `vite`
  13 verbose stack Exit status 1
  13 verbose stack     at EventEmitter.&lt;anonymous&gt; (/usr/share/npm/node_modules/npm-lifecycle/index.js:332:16)
  13 verbose stack     at EventEmitter.emit (events.js:198:13)
  13 verbose stack     at ChildProcess.&lt;anonymous&gt; (/usr/share/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
  13 verbose stack     at ChildProcess.emit (events.js:198:13)
  13 verbose stack     at maybeClose (internal/child_process.js:982:16)
  13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
  14 verbose pkgid personalwebsite@0.0.0
  15 verbose cwd /home/omar-backup/Desktop/MrBoogle.github.io/personalWebsite
  16 verbose Linux 5.4.0-26-generic
  17 verbose argv &quot;/usr/bin/node&quot; &quot;/usr/bin/npm&quot; &quot;run&quot; &quot;dev&quot;
  18 verbose node v10.19.0
  19 verbose npm  v6.14.4
  20 error code ELIFECYCLE
  21 error errno 1
  22 error personalwebsite@0.0.0 dev: `vite`
  22 error Exit status 1
  23 error Failed at the personalwebsite@0.0.0 dev script.
  23 error This is probably not a problem with npm. There is likely additional logging output above.
  24 verbose exit [ 1, true ]
  </code></pre>
  <p>I've spent about an hour now trying to figure this out but have yet to find anything. I installed vite but nothing gets hosted (I'm trying to host my app on localhost:3000) and instead a weird window pops up using qt5ct. Unfortunately that no longer works because I probably messed something up while trying to get this to work.
  The tutorial I'm following can be found <a href="https://www.youtube.com/watch?v=Q7AOvWpIVHU" rel="nofollow noreferrer">here</a>. I'm running into issues around the <a href="https://youtu.be/Q7AOvWpIVHU?t=166" rel="nofollow noreferrer">2:45</a> mark.</p>