After $npm install, Getting Error: Cannot find module '../lib/utils/unsupported.js'

后端 未结 12 2111
星月不相逢
星月不相逢 2021-02-03 21:52

I just came back to work on a React project after working in the Rails environment and found that I cannot run any NPM commands in my Mac terminal. I\'ve tried all the remedies

12条回答
  •  日久生厌
    2021-02-03 22:28

    In my case, the solution to the problem was reinstalling the node using the official installer from https://nodejs.org (Mac OS).

    Solution:

    1. Download node installer from https://nodejs.org
    2. Install it

    P.S. The problem appeared after yarn installation.

提交回复
热议问题