insidesherpa / JPMC-tech-task-2

29 stars 201 forks source link

~NPM START ERROR: Failed to compile: Parsing error: Unexpected token, expected ";" #311

Closed akirpach closed 3 years ago

akirpach commented 3 years ago

I dealt a great time trying to find solutions to npm start command as it would produce different errors with different approaches that you take. Recently, I read the full thread on #24 trying multiple solutions to my problems and generally what I did was:

  1. Each try I started out with a fresh JPMC-tech-task-2-py3/JPMC-tech-task-2 folder so I have fresh .json files
  2. I was using npm install to download node_modules folder but as aforementioned thread suggested I downloaded that folder here
  3. Start my server in an administrator cmd
  4. Start another normal cmd in JPMC-tech-task-2-py3/JPMC-tech-task-2 folder to run my npm start And I get this output: tech4
akirpach commented 3 years ago

UPD: I resolved this entire problem by following these steps:

  1. Clone original commands into your repo as described in slide 34
  2. Without running npm install download node_module from here and put inside your JPMC-tech-task-2-py3 folder
  3. Run npm start