npm error While creating React Native Project

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

npm error While creating React Native Project

问题

在创建 React Native 应用时,我遇到了一些问题:

npm error While creating React Native Project

我尝试创建一个 React Native 项目,但它失败了。

英文:

While I'm creating react native app I am facing some problem:

npm error While creating React Native Project

I try to create a react-native project but it failed.

答案1

得分: 1

  1. 使用 node --v 检查 Node.js 版本。
  2. 尝试使用该版本初始化项目:npx react-native init <ProjectName> --version 0.68.5
  3. 查看文档以确保该版本稳定。
  4. 如有必要,更新包。
英文:
  1. Check the node version with node --v
  2. Try to init with that version npx react-native init &lt;ProjectName&gt; --version 0.68.5
  3. Check the documentation to make sure the version is stable
  4. Update the package if needed

答案2

得分: 1

Remove '@latest' from command.
npx react-native init AwesomeProject

英文:

Remove '@latest' from command.
npx react-native init AwesomeProject

huangapple
  • 本文由 发表于 2023年3月31日 17:24:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/75896817.html
匿名

发表评论

匿名网友

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

确定