查看包的版本信息

2022-03-25  本文已影响0人  前端小白的摸爬滚打

讲在前面

npm 查看一个包的完整信息,分为两种情况:

查看 npm 服务器上某个包的版本信息

npm view react version
17.0.2
npm view react versions
npm info react

react@17.0.2 | MIT | deps: 2 | versions: 834
React is a JavaScript library for building user interfaces.
https://reactjs.org/

dist
.tarball: http://npm.taobao.com/react/download/react-17.0.2.tgz
.shasum: d0b5cc516d29eb3eee383f75b62864cfb6800037

dependencies:
loose-envify: ^1.1.0  object-assign: ^4.1.1

maintainers:
- acdlite <acdlite@me.com>
- brianvaughn <briandavidvaughn@gmail.com>
- fb <opensource+npm@fb.com>
- gaearon <dan.abramov@gmail.com>
- lunaruan <lunaris.ruan@gmail.com>
- sophiebits <npm2@sophiebits.com>
- trueadm <dg@domgan.com>

dist-tags:
beta: 18.0.0-beta-24dd07bd2-20211208                 latest: 17.0.2                                       rc: 18.0.0-rc.3
experimental: 0.0.0-experimental-3f8990898-20220323  next: 18.0.0-rc.3-next-3f8990898-20220323

published a year ago by gaearon <dan.abramov@gmail.com>

查看本地安装的包的版本信息

上一篇下一篇

猜你喜欢

热点阅读