npx create-react-app引发缺少依赖项错误

时间:2018-12-04 04:54:43

标签: reactjs create-react-app

我正在使用npx create-react-app client npm init react-app my-appcreate-react-app client来为我的MERN项目构建react.js目录。

但是它继续在package.json中抛出缺少的依赖项

npx create-react-app client

Creating a new React app in D:\client.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

yarn add v1.8.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "win32" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
Missing dependencies in package.json

我不明白的是,所需的所有依赖项都是由命令创建的,从命令值到package.json文件,作为用户,我无法执行任何操作,但会引发缺少依赖项错误。

我也将这个问题发布在他们的github问题部分。但显然没有任何答复。

有关此问题的任何帮助都将有所帮助。在此先感谢!

0 个答案:

没有答案
相关问题