3.使用 npm 命令安装模块
2017-12-21 本文已影响0人
柳暗花明又一匪
npm 安装 Node.js 模块语法:
npm install (with no args, in package dir)
创建项目移动到目标项目下 cd E:\work\app\cloudMall
运行命令下载JQuery依赖包
npm install jquery

会自动下载最新版本的jquery包,到目录的node_modules文件夹里面

或者指定要安装的jquery版本
npm install -g jquery@1.6.3
移除jquery包
npm install -g jquery@1.6.3