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

How to implement simple data monitoring with JS

Table of contents Overview first step Step 2 Why ...

How to add and delete unique indexes for fields in MySQL

1. Add PRIMARY KEY (primary key index) mysql>A...

Vue's global watermark implementation example

Table of contents 1. Create a watermark Js file 2...

Tutorial on installing Odoo14 from source code on Ubuntu 18.04

Table of contents Background of this series Overv...

js to implement collision detection

This article example shares the specific code of ...

Detailed example of concatenating multiple fields in mysql

The MySQL query result row field splicing can be ...

HTML Several Special Dividing Line Effects

1. Basic lines 2. Special effects (the effects ar...

Detailed explanation of styles in uni-app

Table of contents Styles in uni-app Summarize Sty...

How to use vue-cli to create a project and package it with webpack

1. Prepare the environment (download nodejs and s...

Should I use distinct or group by to remove duplicates in MySQL?

Preface About the performance comparison between ...

Detailed explanation of how to use Vue to load weather components

This article shares with you how to use Vue to lo...

Detailed explanation of MYSQL stored procedure comments

Table of contents 1. Instructions for use 2. Prep...

English: A link tag will automatically complete href in IE

English: A link tag will automatically complete h...