1.node官网下载:
2.双击安装程序安装,一直点继续直到安装成功:
C7E77A7C-E469-4609-9066-1F37982A9D3A.png
597BA812-BF3C-4BE6-886C-28DB26355A21.png
2E533DC5-7FFF-4B3D-B368-2CFDC1C3FBA1.png
6EA3E86B-7E67-4092-8185-749D654935DC.png
BEAB4A93-93FD-4222-9BBB-7278B6F09B44.png
EAB9C6D4-5858-40CC-99BF-FB6A80219127.png
86B9F8E7-CCCC-4FDA-88F6-4B10535496C6.png
3.在终端输入命令:
node -v
npm -v
出现下图所示则表示安装成功:
DACE7717-9D2E-4435-ABF7-739630A593D4.png
4.设置淘宝镜像:
npm config set registry " https://registry.npm.taobao.org "
网友评论