当我尝试 运行 终端中的 npm 时,它显示错误

When I try to run the npm in the terminal, it showing the error

当我尝试 运行 终端中的 npm 时,它显示如下错误:

错误:

Failed to compile.
./src/App.js
Module not found: Can't resolve './App.css' in 'Y:\Web Practicing tasks\React works\tourism\src'

尝试了可能的解决方案,但没有任何效果,请帮助我。

enter image description here

能否提供更多详细信息?

然而,它可能是由“App.css”引起的,该项目已被删除,但您的 App.js

中仍有以下行
import "./App.css"; 

你好像不见了App.css。 您已经尝试了哪些步骤? 您的 src 文件夹中是否有 App.css 文件? 我会在这个确切路径 Y:\Web Practicing tasks\React works\tourism\src 中创建一个名为 App.css 的文件,或者您可以删除 App.js 文件中的导入语句。

没有看到项目文件夹,我只能说这些。

尝试删除 package-lock.json、运行 npm install,然后重新启动 npm。也请分享您的 package.json 文件。