Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/25.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
Reactjs I';我不能执行基本程序_Reactjs_Npm - Fatal编程技术网

Reactjs I';我不能执行基本程序

Reactjs I';我不能执行基本程序,reactjs,npm,Reactjs,Npm,我不能执行基本程序。本地主机未打开。我尝试过创建工作空间,并使用npx create react app helloworld导航和创建了react helloworld文件夹,在我的工作空间中创建了相同的文件夹,但在使用npm start运行时,我在vs代码和cmd md中发现以下错误您使用了错误的命令,使用npm run start或npm start尝试将WSL路径添加到System32 export PATH=$PATH:/mnt/c/Windows/System32我在哪里添加此“ex

我不能执行基本程序。本地主机未打开。我尝试过创建工作空间,并使用npx create react app helloworld导航和创建了react helloworld文件夹,在我的工作空间中创建了相同的文件夹,但在使用npm start运行时,我在vs代码和cmd md中发现以下错误您使用了错误的命令,使用npm run start或npm start尝试将WSL路径添加到System32


export PATH=$PATH:/mnt/c/Windows/System32

我在哪里添加此“export PATH=$PATH:/mnt/c/Windows/System32”我已尝试在env变量中添加“c/Windows/System32”它对我有效谢谢我使用npm start运行我的react应用程序,即使它给我那个错误,请检查这是否对你有效