npx create-react-app后,yarn start不起作用

问题描述

我在Mac终端中创建了一个React应用:

npx create-react-app robofriends
cd my-app
yarn-start

我收到以下错误

dyld: lazy symbol binding Failed: Symbol not found: _FSEventStreamCreate<br>
  Referenced from: /robofriends/node_modules/webpack-dev-server/node_modules/fsevents/build/Release/fse.node<br>
  Expected in: flat namespace


dyld: Symbol not found: _FSEventStreamCreate<br>
  Referenced from: ./my-app/node_modules/webpack-dev-server/node_modules/fsevents/build/Release/fse.node<br>
  Expected in: flat namespace

error Command Failed with exit code 1.<br>
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`

节点版本:v14.11.0

NPM版本:6.14.8

macOS Catalina版本10.15.5

我的package.json文件

{
  "name": "robofriends","version": "0.1.0","private": true,"dependencies": {
    "@testing-library/jest-dom": "^4.2.4","@testing-library/react": "^9.3.2","@testing-library/user-event": "^7.1.2","react": "^16.13.1","react-dom": "^16.13.1","react-scripts": "3.4.3"
  },"scripts": {
    "start": "react-scripts start","build": "react-scripts build","test": "react-scripts test","eject": "react-scripts eject"
  },"eslintConfig": {
    "extends": "react-app"
  },"browserslist": {
    "production": [
      ">0.2%","not dead","not op_mini all"
    ],"development": [
      "last 1 chrome version","last 1 firefox version","last 1 safari version"
    ]
  }
}

解决方法

我认为是纱线启动,而不是纱线启动。之前,cd 的意思是“更改目录”。您必须执行 class Parent<T: Parent>(因为是目录名称)才能进入目录,然后运行命令 cd robofriends

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...