(1)打开命令行:shift+鼠标右键;
(2)node-v 查询是否已经安装;
(3) 安装淘宝镜像:
npm install –g cnpm –registry = https://registry.npm.taobao.org;
(4)npm安装步骤:
下载nodejs 64-bit ;
shift+鼠标右键输入cmd;
npm init 初始化
node
npm config set registry https://resgistry.npm.taobao.org 配置淘宝镜像
cnpm-v 检查是否配置
npm install jquery 产生node_modules文件夹
原文:https://www.cnblogs.com/maoqianlin/p/12553752.html