用苹果电脑(MacBook air 或者 M1)运行 npx react-native init appName时候报错,如下图所示:
TypeError: cli.init is not a function
at run (/opt/homebrew/lib/node_modules/react-native-cli/index.js:302:7)
at createProjec…
react项目使用eslint npm install eslint --save-dev初始化配置文件
# 初始化eslintrc文件
npx eslint --init√ How would you like to use ESLint? style
√ What type of modules does your project use? esm
√ Which framework does your project use? reac…