can't brew install node

后端 未结 12 1086
无人及你
无人及你 2020-12-13 06:35

I am trying to upgrade my node via homebrew but ran into a problem because I think I tried to download through the website. I am very new to terminal. I\'ve tried to search

12条回答
  •  南笙
    南笙 (楼主)
    2020-12-13 07:04

    I ran into this same issue under the same circumstances. I was able to get the brew version to install successfully by:

    1. Run brew install node
    2. Make note of the module that is causing the issue and delete it. In your case, this would be /usr/local/include/node
    3. Uninstall - brew uninstall node
    4. Re-install - brew install node

    I had to repeat this process a few times for each remaining problematic directory (about 3 different ones in actuality), and the install eventually succeeded without any issues.

提交回复
热议问题