Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How ​ mac installs node.js

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the knowledge of "how to install node.js in mac". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Mac install node.js method: 1, visit the nodejs official website; 2, download the corresponding ".pkg" file; 3, double-click the ".pkg" file and follow the default steps to install.

This article operating environment: macOS10.15 system, nodejs10.13.0 version, macbook pro 2020 computer.

How does mac install node.js?

I don't have the foundation of nodejs, I just record it.

Download nodejs

Visit the nodejs official website (https://nodejs.org/en/) and choose the right one. I choose mac.

Double-click the .pkg file you just downloaded, open it and follow the steps to install it by default.

Be sure to check after the installation is completed. Open the terminal and enter:

Node-v npm-v

Because node comes with npm when it is installed.

If the version information appears, the installation is successful.

Enter the following command

Npm-g install npm

Update npm to the latest version.

This is a way to download node, and another is to use the command

In this way, I refer to other people's blogs when installing vue.

1. Install brew

Open the terminal and run the following command:

/ usr/bin/ruby-e "$(curl-fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then check to see if the installation is successful, and enter the following command:

Brew-v

If the version information appears, the installation is successful.

2. Install node.js

Run the following command in the terminal:

Brew install nodejs

After the installation is successful, check the version information of node.js.

This is the end of "how mac installs node.js". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report