2017-09-28 68 views
0

我的问题是在标题中,我必须安装react-docgen的测试版本3.0.0。是否可以通过npm安装beta版本?如何通过npm安装测试版本

谢谢

+2

可能有[使用NPM安装包时,您能否告诉它使用其某个依赖项的不同版本?](https://stackoverflow.com/questions/11233133/when-installing-a-package -with-npm-can-you-tell-it-to-use-a-different-version-o) – bennygenel

回答

1

是的,有可能使用@符号安装测试版。例如,为了安装react-docgen(V3.0.0-联蛋白β7)运行下面的命令:

npm install -g [email protected]

有关安装的特定版本的进一步信息可以在npm-install文档中找到。

+0

感谢您的回答@RobC,我将新问题发布在新答案上 –