ENOENT:没有这样的文件或目录!在 Laravel

ENOENT: no such file or directory! in Laravel

当我运行 npm run dev for Laravel Mix in webpack.mix.js时,出现以下错误:我不知道问题所在。它只是粘在我的一个文件上。

[webpack-cli] [Error: ENOENT: no such file or directory, open 'C:\Users\AsemaN\Desktop\AryaBMS\resources\css\MainPage\sweetaleret2.all.min.css'] { errno: -4058, code: 'ENOENT', syscall: 'open', path: 'C:\Users\AsemaN\Desktop\AryaBMS\resources\css\MainPage\sweetaleret2.all.min.css' } npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! AryaBMS@1.0.0 development: mix npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the AryaBMS@1.0.0 development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\AsemaN\AppData\Roaming\npm-cache_logs22-01-26T19_09_23_305Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! AryaBMS@1.0.0 dev: npm run development npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the AryaBMS@1.0.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\AsemaN\AppData\Roaming\npm-cache_logs22-01-26T19_09_23_491Z-debug.log

应用程序希望在 C:\Users\AsemaN\Desktop\AryaBMS\resources\css\MainPage\sweetaleret2.all.min.css 找到一个文件。但是,该文件不存在。 EOENT 的意思是 'Error NO ENTity,' 翻译成英文没有找到目录或文件。因此,您要么需要创建预期的 directory/file,要么将您的应用程序配置为在正确的目录中查找 sweetaleret2.all.min.css。也许您在某处拼错了文件名?