covid19india / covid19india-react

Tracking the impact of COVID-19 in India
https://www.covid19india.org
MIT License
6.86k stars 3.41k forks source link

Syntax error - terser-webpack-plugin/node_modules/p-limit/index.js:29 catch {} - needs node update. #2405

Closed seenudivi closed 3 years ago

seenudivi commented 3 years ago

I got the below error when I cloned the repository and try to execute npm i && npm start

_terser-webpack-plugin/nodemodules/p-limit/index.js:29 } catch {} ^ SyntaxError: Unexpected token {

I have spent several hours trying to figure out the problem. Ran npm update, npm cache clean --force and npm install several times to see if all the dependencies get installed.

Solution: Make sure you have the latest version of the node running.

@shuklaayush, Thank a TON for your quick help via email.

seenudivi commented 3 years ago

I am closing the issue as this is for information only.