构建 Expo React Native

huangapple go评论56阅读模式
英文:

Build expo React Native

问题

/home/expo/workingdir/build目录中运行yarn install命令

yarn install 版本为 v1.22.19

[1/4] 正在解析包...

[stderr]
警告:锁定文件中对“@expo/webpack-config@^49.0.0”的条目不正确。忽略它。

[stderr]
错误:找不到与“^49.0.0”匹配的“@expo/webpack-config”的任何版本。

有关此命令的文档,请访问https://yarnpkg.com/en/docs/cli/install。

yarn 以非零代码退出。

在 React Native Expo 构建中遇到问题。

英文:

`Running "yarn install" in /home/expo/workingdir/build directory

yarn install v1.22.19

[1/4] Resolving packages...

[stderr]
warning Lockfile has incorrect entry for "@expo/webpack-config@^49.0.0". Ignoring it.

[stderr]
error Couldn't find any versions for "@expo/webpack-config" that matches "^49.0.0"

info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

yarn exited with non-zero code: 1`

Problem on react native expo build.

答案1

得分: 1

来自npmjs:

这个包的最新版本是18.1.1。您正在使用49.0.0版本。
更新版本,应该可以工作。

英文:

From npmjs:

The latest version for this package is 18.1.1. You are using 49.0.0.
Update the version and it should work.

huangapple
  • 本文由 发表于 2023年7月10日 14:44:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/76651259.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定