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

后端 未结 12 2115
星月不相逢
星月不相逢 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

    I had an issue after upgrade my mac. I tried different solutions available on stack overflow and nothing work for me.

    This solution works for me.

    1. Uninstall node all version brew uninstall --force node
    2. Install it again by this brew install node

    First point remove all node versions if available.

    Done. Enjoy coding.

提交回复
热议问题