Honvid / laravel-vue-element-admin-starter

framework used the laravel5.8, vue-element-admin, just a starter.
MIT License
44 stars 13 forks source link

报了这个错,论坛的帖子里面好像没有相关说明呀 #7

Closed carveybunt closed 4 years ago

carveybunt commented 4 years ago
    laradock@543fd7ede264:/var/www/datacenter-admin$ npm run dev

    > @ dev /var/www/datacenter-admin
    > npm run development

    > @ development /var/www/datacenter-admin
    > NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

    98% after emitting SizeLimitsPlugin

     ERROR  Failed to compile with 1 errors                                                                                                                                               8:26:03 AM

    This dependency was not found:

    * /var/www/datacenter-admin/resources/backend/main.js in multi ./resources/backend/main.js

    To install it, you can run: npm install --save /var/www/datacenter-admin/resources/backend/main.js
          Asset      Size    Chunks             Chunk Names
    /js/main.js  3.93 KiB  /js/main  [emitted]  /js/main

    ERROR in multi ./resources/backend/main.js
    Module not found: Error: Can't resolve '/var/www/datacenter-admin/resources/backend/main.js' in '/var/www/datacenter-admin'
     @ multi ./resources/backend/main.js /js/main[0]
    npm ERR! code ELIFECYCLE
    npm ERR! errno 2
    npm ERR! @ development: `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!     /home/laradock/.npm/_logs/2020-02-13T08_26_03_498Z-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!     /home/laradock/.npm/_logs/2020-02-13T08_26_03_531Z-debug.log

不知道究竟是哪里出错了,求大佬指教。