worldint
mathengi
worldint
전체 방문자
오늘
어제
  • 분류 전체보기 (152)
    • infra, cloud (4)
      • aws (4)
    • TIL,WIL(일간,주간 회고) (57)
    • 컴퓨터 공학 (5)
      • 정보통신 (3)
      • 컴퓨터 구조 (2)
    • Math (1)
      • linear algebra (0)
      • 명제와 집합 (1)
    • Operating System (8)
      • Linux Ubuntu (1)
    • programming (66)
      • c , c++ (9)
      • c# (0)
      • java (2)
      • javascript (14)
      • Python (4)
      • github (1)
      • programing terms (12)
      • html, css (2)
      • docker (3)
      • algorithm_datastructure (5)
      • database (11)
      • flutter(dart) (2)
    • 항해99 부트캠프 (7)
      • 사전교육 (7)
    • 보안관련 (1)

블로그 메뉴

    공지사항

    인기 글

    태그

    • ec2 #코드디플로이 #리눅스
    • MONGOOSE
    • NVM
    • node
    • AWS
    • nodejs
    • Blue/Green
    • 디비데드락
    • MongoDB
    • CloudFront
    • db데드락
    • ci/cd
    • docker
    • Javascript
    • EC2
    • NoSQL
    • flutter #provider #error

    최근 댓글

    최근 글

    티스토리

    hELLO · Designed By 정상우.
    worldint

    mathengi

    programming

    [nodejs]맥북 nodejs 완전 삭제 방법

    2024. 7. 11. 10:45
    # first:
    lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do  sudo rm /usr/local/${f}; done
    sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
    
    # To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
    
    # go to /usr/local/lib and delete any node and node_modules
    cd /usr/local/lib
    sudo rm -rf node*
    
    # go to /usr/local/include and delete any node and node_modules directory
    cd /usr/local/include
    sudo rm -rf node*
    
    # if you installed with brew install node, then run brew uninstall node in your terminal
    brew uninstall node
    
    # check your Home directory for any "local" or "lib" or "include" folders, and delete any "node" or "node_modules" from there
    # go to /usr/local/bin and delete any node executable
    cd /usr/local/bin
    sudo rm -rf /usr/local/bin/npm
    sudo rm -rf /usr/local/bin/node
    ls -las
    
    # you may need to do the additional instructions as well:
    sudo rm -rf /usr/local/share/man/man1/node.1
    sudo rm -rf /usr/local/lib/dtrace/node.d
    sudo rm -rf ~/.npm

     

     

     

     

     

     

     

    출처: https://gist.github.com/TonyMtz/d75101d9bdf764c890ef

     

     

      worldint
      worldint
      공부한 내용들, 트러블 슈팅 용 블로그

      티스토리툴바