Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/375.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 尝试创建新的React应用程序时出错_Javascript_Node.js_Reactjs - Fatal编程技术网

Javascript 尝试创建新的React应用程序时出错

Javascript 尝试创建新的React应用程序时出错,javascript,node.js,reactjs,Javascript,Node.js,Reactjs,我正在尝试创建React应用程序,但在创建时出错 create-react-app eth-todo-list-react Creating a new React app in C:\Users\Aristophanes\eth-todo-list-react. 'yarnpkg' is not recognized as an internal or external command, operable program or batch file. Installing packages

我正在尝试创建React应用程序,但在创建时出错

create-react-app eth-todo-list-react

Creating a new React app in C:\Users\Aristophanes\eth-todo-list-react.

'yarnpkg' is not recognized as an internal or external command,
operable program or batch file.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

'yarnpkg' is not recognized as an internal or external command,
operable program or batch file.
events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: spawn yarnpkg ENOENT
    at notFoundError (C:\Users\Aristophanes\node_modules\create-react-app\node_modules\cross-spawn\lib\enoent.js:6:26)
    at verifyENOENT (C:\Users\Aristophanes\node_modules\create-react-app\node_modules\cross-spawn\lib\enoent.js:40:16)
    at ChildProcess.cp.emit (C:\Users\Aristophanes\node_modules\create-react-app\node_modules\cross-spawn\lib\enoent.js:27:25)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
Emitted 'error' event at:
    at ChildProcess.cp.emit (C:\Users\Aristophanes\node_modules\create-react-app\node_modules\cross-spawn\lib\enoent.js:30:37)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)

它应该说“success”并初始化一个git存储库。但是我得到了上面的错误。

可能相关:您可以尝试那里列出的故障排除。还有可能的解决方案:这两种方法都不能解决任何问题。我已经按照指示更改了路径。我也遇到了同样的错误。可能相关:您可以尝试下面列出的故障排除。还有可能的解决方案:这两种方法都不能解决任何问题。我已经按照指示更改了路径。我也会犯同样的错误。