Mac node deletion and reinstallation case study

Mac node deletion and reinstallation case study

Mac node delete and reinstall

delete

node -v

sudo npm uninstall npm -g

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

sudo rm /usr/local/lib/dtrace/node.d

Confirm deletion completed

node -v

npm -v

Re-download the stable version from the official website and install it

This is the end of this article about the detailed case of Mac node deletion and reinstallation. For more relevant content about Mac node deletion and reinstallation, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • The latest method to update nodejs to the latest version on mac (recommended)
  • Solve the problem of Mac node version upgrade failure
  • Tutorial on installing nodejs, npm and cnpm on Mac
  • Detailed explanation of how to use NVM to manage different node versions in mac
  • How to install nodejs on Mac (detailed steps with pictures and text)

<<:  How to quickly install RabbitMQ in Docker

>>:  Detailed tutorial on installing MySQL database in Linux environment

Recommend

A brief discussion on DDL and DML in MySQL

Table of contents Preface 1. DDL 1.1 Database Ope...

How to deploy the crownblog project to Alibaba Cloud using docker

Front-end project packaging Find .env.production ...

CSS3 Tab animation example background switching dynamic effect

CSS 3 animation example - dynamic effect of Tab b...

Win10 install Linux ubuntu-18.04 dual system (installation guide)

I installed a Linux Ubuntu system on my computer....

How to define input type=file style

Why beautify the file control? Just imagine that a...

A brief discussion on the characteristics of CSS float

This article introduces the characteristics of CS...

Delegating Privileges in Linux Using Sudo

Introduction to sudo authority delegation su swit...

Installation and use of mysql mycat middleware

1. What is mycat A completely open source large d...

Javascript asynchronous programming: Do you really understand Promise?

Table of contents Preface Basic Usage grammar Err...

Common functions of MySQL basics

Table of contents 1. Common function classificati...

CSS code for arranging photos in Moments

First, you can open Moments and observe several l...

vue.config.js packaging optimization configuration

The information on Baidu is so diverse that it...

Summary of MySQL time statistics methods

When doing database statistics, you often need to...