windows 安裝npm - TerryLee7788/JS_test GitHub Wiki

設定環境變數 將node 路徑設定環境變數%PATH%,指令模式(command line)下輸入以下指令

cd c:\node\bin\
set path=%PATH%;%CD%
setx path "%PATH%"

安裝npm 安裝npm 前請先確認已經 Git 1.7.6 以上版本

git config --system http.sslcainfo /bin/curl-ca-bundle.crt
git clone --recursive git://github.com/isaacs/npm.git
cd npm
node cli.js install npm -gf