windows 下的bash 环境安装npm

1.Git下载 node.js下载
2.安装 git 和 node.js
3.将gitin node.js安装目录加入环境变量path中
4.在D盘下建立目录gitrep 
   打开Git Bash初始化git仓库 命令 git init 出现 .git文件夹
5.安装npm(按步骤完成)
   git clone --recursive git://github.com/isaacs/npm.git  
   git config --system http.sslcainfo /bin/curl-ca-bundle.crt

原文地址:https://www.cnblogs.com/chengyunshen/p/8041740.html