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

前端 未结 10 1942
别那么骄傲
别那么骄傲 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 16:47

    Use npm to uninstall. Just running sudo npm uninstall npm -g removes all the files. To get rid of the extraneous stuff like bash pathnames run this (from nicerobot's answer):

    sudo rm -rf /usr/local/lib/node \ /usr/local/lib/node_modules \ /var/db/receipts/org.nodejs.*

提交回复
热议问题