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
网友评论