npm基本使用
基础教程
地址:http://nodejs.cn/learn/an-introduction-to-the-npm-package-manager
npm常用命令
# 查看npm服务器上所有的jquery版本:
$ npm view jquery versions
# 查看npm服务器上jquery最新版本:
$ npm view jquery version
# 查看npm服务器上最新版本jquery的详细信息:
$ npm info jquery
# 查看本地当前项目jquery的信息(版本及依赖包),没有安装jquery,则返回empty的结果:
$ npm ls jquery
# 查看本地查看全局安装的jquery的信息(版本及依赖包),没有安装jquery,则返回empty的结果:
$ npm ls jquery -g

浙公网安备 33010602011771号