> chataiyy@1.0.0 dev > webpack-dev-server --inline --progress --config build/webpack.dev.conf.js (node:16004) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated. (Use `node --trace-deprecation ...` to show where the warning was created) 10% b 11 12% b 12% b 12% b 13% building modules 25/30 modules 5 active ...!D:\桌面\少儿编程\test2\chatbot\src\App.vue{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }. 14% b 15% b 16 16 16 16 16 95% emitting WARNING Compiled with 2 warnings 00:53:50 This dependency was not found: * async_hooks in ./node_modules/body-parser/node_modules/raw-body/index.js, ./node_modules/on-finished/index.js To install it, you can run: npm install --save async_hooks 终止批处理操作吗(Y/N)? Y PS D:\桌面\少儿编程\test2\chatbot> node server/index.js node:internal/modules/cjs/loader:1078 throw err; ^ Error: Cannot find module 'D:\桌面\少儿编程\test2\chatbot\server\index.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) at Module._load (node:internal/modules/cjs/loader:920:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v18.15.0 PS D:\桌面\少儿编程\test2\chatbot> npm run dev > chataiyy@1.0.0 dev > webpack-dev-server --inline --progress --config build/webpack.dev.conf.js (node:13908) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated. (Use `node --trace-deprecation ...` to show where the warning was created) 10% b 11 12% b 12% b 12% b 12% building modules 24/27 modules 3 active ...!D:\桌面\少儿编程\test2\chatbot\src\App.vue{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }. 14% b 14% b 16 95% emitting WARNING Compiled with 2 warnings 00:58:19 This dependency was not found: * async_hooks in ./node_modules/body-parser/node_modules/raw-body/index.js, ./node_modules/on-finished/index.js To install it, you can run: npm install --save async_hooks
时间: 2024-02-14 11:29:50 浏览: 391
webpack-test:webpack-test
根据你提供的信息,可以看出你正在运行一个名为 `chataiyy` 的项目,并尝试使用 `npm run dev` 启动开发服务器。
然而,在启动服务器之前,你遇到了一些问题。首先,有两个警告提醒你某些依赖项无法找到,其中包括 `async_hooks`。你可以尝试运行 `npm install --save async_hooks` 来安装这个依赖项并解决警告。
其次,当你尝试运行 `node server/index.js` 时,出现了一个错误,指示找不到 `D:\桌面\少儿编程\test2\chatbot\server\index.js` 这个文件。请确保该文件存在于指定的路径中,并且路径是正确的。如果文件确实存在但仍然无法找到,可以尝试检查文件路径是否正确设置。
最后,你继续运行 `npm run dev` 命令,服务器开始构建并编译项目。然而,构建过程中仍然出现上述两个依赖项无法找到的警告。
希望这些信息能帮助你解决问题。如果问题仍然存在或有其他疑问,请提供更多详细信息以便我可以更好地帮助你。
阅读全文