Error: Cannot find module 'cors'

后端 未结 4 1453
无人及你
无人及你 2021-02-19 00:07

I keep getting this error message below: I tried to find other stackoverflow post and articles but couldn\'t really sovle it. do any of you guys know what the problem is it?

4条回答
  •  名媛妹妹
    2021-02-19 00:39

    You can simply open the package.json file in any text editor and add cors under dependencies like this: "cors": "2.8.5"

    Since the latest version of cors is 2.8.5

提交回复
热议问题