This time I will show you how to install nodejs, npm and cnpm in Mac. What are the precautions for installing nodejs, npm and cnpm in Mac? Here is the actual combat Let’s take a look at the case.
First open the node official website nodejsThen you will see the following Click on any of the above to complete the download. After the download is complete, find the file, confirm the fool-proof installation all the way, and then it will be OK. Let’s test whether the installation is successful: Open the terminal under Mac and enter:node -v If the version number appears, it means success:
sudo npm install - g cnpm –registry=https://<a href="//m.sbmmt.com/wiki/373.html" target="_blank">registry.npm.taobao.org –verbose</a> The above line uses the Taobao image to install cnpm. If you enter cnpm -v after the installation is complete, the following appears. The content indicates success:
How to use JS to merge multiple arrays to recalculate
jquery dynamically adds click event steps Detailed explanation
The above is the detailed content of How to install nodejs, npm and cnpm on Mac. For more information, please follow other related articles on the PHP Chinese website!