为什么npm run dev命令会抛出这样的错误?

时间:2020-10-12 15:13:02

标签: node.js laravel npm webpack

嗨,我对npm run dev命令有疑问。运行后,它会引发如下错误:

 ERROR  Failed to compile with 1 errors                                                                                                                                                                   5:10:07 PM

This dependency was not found:

* /Users/adrianmindek/Code/PersonalPage/resources/sass/app.css in multi ./resources/js/app.js ./resources/sass/app.css

To install it, you can run: npm install --save /Users/adrianmindek/Code/PersonalPage/resources/sass/app.css
     Asset      Size   Chunks             Chunk Names
/js/app.js  1.07 MiB  /js/app  [emitted]  /js/app

ERROR in multi ./resources/js/app.js ./resources/sass/app.css
Module not found: Error: Can't resolve '/Users/adrianmindek/Code/PersonalPage/resources/sass/app.css' in '/Users/adrianmindek/Code/PersonalPage'
 @ multi ./resources/js/app.js ./resources/sass/app.css /js/app[1]
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the @ 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!     /Users/adrianmindek/.npm/_logs/2020-10-12T15_10_07_990Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the @ 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!     /Users/adrianmindek/.npm/_logs/2020-10-12T15_10_08_009Z-debug.log

我真的不知道此错误意味着什么,所以如果您能帮助我,我将非常感谢。

0 个答案:

没有答案