【发布时间】:2022-11-16 18:04:38
【问题描述】:
最近我一直在使用 React。我有 4 天的空闲时间,休息了。很快我又开始尝试npm 开始它在终端中显示错误。在此之前,我清理了我的桌面,因为它有很多文件夹,我将该项目移到了其他文件夹中。我认为这可能会以某种方式导致错误,我刚刚尝试使用新的npx create-react-app 我的应用程序.但是,这并没有解决错误。它会在我拥有的每个 React 项目中显示它。我已经在谷歌上搜索了 2 个小时并尝试了所有方法,尽管它没有用。有人可以帮忙吗?
Error:
The system cannot find the path specified.
node:internal/modules/cjs/loader:936
throw err;
Error: Cannot find module 'C:\Users\nijaz\Desktop\react-scripts\bin\react-scripts.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
感谢您的时间。
【问题讨论】:
标签: node.js reactjs react-scripts