【发布时间】:2021-03-27 01:17:17
【问题描述】:
当我尝试创建一个新的 typescript react 应用程序时,出现错误。我运行npx create-react-app my-app --template typescript 并导致此错误Error: Cannot find module './copy-sync'
我再次尝试使用yarn yarn create-react-app my-app --template typescript,但错误相同。
我知道here 提到的不再支持create-react-app 全局安装,所以我在本地安装了它。
【问题讨论】:
标签: reactjs typescript create-react-app yarnpkg npx