How do I uninstall nodejs installed from pkg (Mac OS X)?

前端 未结 10 1945
别那么骄傲
别那么骄傲 2020-11-30 16:32

I installed NodeJS from pkg file on my Mac. Now I need to uninstall it. Tell me please how to do it. I tried to remove files from this list:

lsbom -f

10条回答
  •  爱一瞬间的悲伤
    2020-11-30 17:06

    This is the full list of commands I used (Many thanks to the posters above):

    sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
    sudo rm -rf /usr/local/include/node /Users/$USER/.npm
    sudo rm /usr/local/bin/node
    sudo rm /usr/local/share/man/man1/node.1
    brew install node
    

提交回复
热议问题