简体   繁体   English

无法创建新的反应原生项目(react-native init Myproject)

[英]Unable to create new react native Project (react-native init Myproject)

I'm unable create a new Project in React native.我无法在 React Native 中创建新项目。 Used Command is react-native init Myproject .使用的命令是react-native init Myproject Please refer the below image.请参考下图。

在此处输入图像描述

It seems that you have memory issues with npm, try to clean cache:看来你有 memory npm 问题,尝试清理缓存:

`npm cache clean`

or npm cache clean --forcenpm cache clean --force

and if it's a new project why not using yarn?如果这是一个新项目,为什么不使用纱线? :) :)

Do the following:请执行下列操作:

  1. Remove the global binary react-native删除全局二进制react-native
  2. Run npx react-native init Myproject运行npx react-native init Myproject

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM