每次我尝试使用create- react -app <...name>创建一个React应用程序时,我都会收到这个错误:“creating a new React app in C:\windows\system32\brian-todos”。
正在安装程序包。这可能需要几分钟的时间。正在安装react、react-dom和react脚本...
npm错误!在“...tXcMskoaoOolrubJ3NQGh”附近分析时,JSON输入意外结束
npm错误!这个运行的完整日志可以在: npm ERR!C:\Users\BrianMartinez\AppData\Roaming\npm
我正在尝试在我的web应用程序中添加语音识别。我正在使用Web的语音识别。这是我的反应密码:
import logo from './logo.svg';
import './App.css';
import React from 'react';
import { Typography, Button, Box } from '@mui/material';
function App() {
const [values,setValues] = React.useState("Click on the start
当我用npm run start启动我的创建-反应-应用程序时,我根据推荐的react和react插件在eslintrc.json中得到预期的ESLint错误。终端显示预期的错误,如下所示,编译失败:
Line 8:10: 'turns' is assigned a value but never used no-unused-vars
如果然后使用npx kill-port [port-number]关闭CRA,然后重新启动CRA,则应用程序编译成功,不会出现ESLint错误。因此,似乎关闭端口并重新编译将禁用ESLint。要让ESLint再次运行,我必须更改