Home > Web Front-end > JS Tutorial > body text

How to upgrade Node version

php中世界最好的语言
Release: 2018-05-29 10:35:31
Original
1994 people have browsed it

This time I will show you how to operate the upgraded version of Node, and what are the precautions when operating the upgraded version of Node. The following is a practical case, let's take a look.

Mac environment

##The first step, Check first Native node.js version:

$ node -v
Copy after login
Copy after login

The second step, Clear node.js cache:

$ sudo npm cache clean -f
Copy after login

The third step, Install n tool, this tool is specially used to manage node.js version, don’t doubt the name of this tool, it is him That's him, his name is "n"

$ sudo npm install -g n
Copy after login

The fourth step,Install the latest version of node.js

$ sudo n stable
Copy after login

The fifth step, Check the local node.js version again:

$ node -v
Copy after login
Copy after login

As shown

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!

Recommended reading:

How to deal with Mac installation thrift error due to bison

How to use ES6 template string

The above is the detailed content of How to upgrade Node version. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!