1、代码 // 查看包有哪些版本 npm view 包名 versions eg: npm view react versions // 查看包最新版本 npm view 包名 version eg: npm view react version 2、效果