我正在研究React Native。我可以通过成功执行命令import java.io.*;
import java.util.*;
public class A1
{
public static void main (String [] args) throws IOException
{
if (args.length > 0)
{
String file = (args[2]);
try
{
FileReader fr = new FileReader (file);
BufferedReader br = new BufferedReader(fr);
String s = br.readLine();
int i = 1;
StringTokenizer st = new StringTokenizer(s);
while (st.hasMoreTokens())
{
System.out.println(st.nextToken());
}
br.close();
} catch (IOException e)
{
System.out.println ("The following error occurred " + e);
}
}
}
}
来创建RN项目。但今天我做同样的工作,我收到了一个错误:
react-native init myProject
请帮我解决这个问题,TKS。顺便说一句,My Mac os是macOS Sierra 10.12