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 followingnode -v If the version number appears, it means success:
sudo npm install - g cnpm –registry=https://<a href="http://www.php.cn/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!