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

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

    One other suggestion after trying these that finally worked for me was simply upgrading my node by downloading the latest via the download and package installer from here:

    https://nodejs.org/en/download/

    Before doing this trying to run any npm command gave me the same error brought in OP's question

    npm commands started working for me after that.

提交回复
热议问题