[英]npm install tries to install grpc 1.20.0 when version 1.24.2 is in package.json
When I run an npm install on my React-Native project I get the following error that says its trying to install gRPC version 1.20.0, but in my package.json and package.json.lock it has gRPC version 1.24.1.当我在我的 React-Native 项目上运行 npm install 时,我收到以下错误,指出它正在尝试安装 gRPC 版本 1.20.0,但在我的 package.json 和 package.json.lock 中,它有 gRPC 版本 1.24.1。
I have tried changing the versions of the npm and grpc and still get the same error.我尝试更改 npm 和 grpc 的版本,但仍然出现相同的错误。
As you can see at the first line, gRPC version 1.20.0
is installing as an dependency of package firebase
.正如你可以在第一行看,
gRPC version 1.20.0
被安装为包的依赖firebase
。
So when npm install firebase first, it will install gRPC version 1.20.0
, not the version in your package.json.所以当 npm install
gRPC version 1.20.0
首先安装时,它会安装gRPC version 1.20.0
,而不是你的 package.json 中的版本。
If you upgrage your firebase version,the following command should works:如果您升级您的 firebase 版本,以下命令应该可以工作:
npm update firebase
Hope this helps!希望这可以帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.