[GH-ISSUE #724] Fresh Install Error #514

Closed
opened 2026-02-26 02:33:26 +03:00 by kerem · 4 comments
Owner

Originally created by @ghost on GitHub (Mar 5, 2018).
Original GitHub issue: https://github.com/koel/koel/issues/724

i had following error on php artisan koel:init command.
i guess webpack was failling

yarn install v1.5.1
[1/4] Resolving packages...
success Already up-to-date.
$ yarn production
yarn run v1.5.1
$ cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
 95% emitting ERROR  Failed to compile with 1 errors14:43:29                         

This dependency was not found:

* /var/www/html/koel/resources/assets/js/remote/app.js in multi ./resources/assets/js/remote/app.js

To install it, you can run: npm install --save /var/www/html/koel/resources/assets/js/remote/app.js
                                 Asset       Size  Chunks                    Chunk Names
         fonts/fontawesome-webfont.eot     166 kB          [emitted]         
       /js/app.6a4f547223458a730b74.js  569 bytes       0  [emitted]         /js/app
     /css/app.e5040c33e4ca06a0b8f6.css    0 bytes       0  [emitted]         /js/app
  /css/remote.e5040c33e4ca06a0b8f6.css    0 bytes       0  [emitted]         /js/app
                     mix-manifest.json  234 bytes          [emitted]         
/js/remote/app.d41d8cd98f00b204e980.js  592 bytes       1  [emitted]         /js/remote/app
         fonts/fontawesome-webfont.svg     444 kB          [emitted]  [big]  
         fonts/fontawesome-webfont.ttf     166 kB          [emitted]         
        fonts/fontawesome-webfont.woff      98 kB          [emitted]         
       fonts/fontawesome-webfont.woff2    77.2 kB          [emitted]         
                 fonts/FontAwesome.otf     135 kB          [emitted]         
error An unexpected error occurred: "Command failed.                                                                
Exit code: 2
Command: sh
Arguments: -c cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
Directory: /var/www/html/koel
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/var/www/html/koel/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error An unexpected error occurred: "Command failed.                                                                
Exit code: 1
Command: sh
Arguments: -c yarn production
Directory: /var/www/html/koel
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/var/www/html/koel/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

So, Found solution, just created following files
-resources
| --assets
| |---img
| |---js
| | | ---remote
| | | | app.js
| | | app.js
| |
| |---sass
| | app.css
| remote.scss

Originally created by @ghost on GitHub (Mar 5, 2018). Original GitHub issue: https://github.com/koel/koel/issues/724 i had following error on` php artisan koel:init` command. i guess webpack was failling ``` yarn install v1.5.1 [1/4] Resolving packages... success Already up-to-date. $ yarn production yarn run v1.5.1 $ cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js 95% emitting ERROR Failed to compile with 1 errors14:43:29 This dependency was not found: * /var/www/html/koel/resources/assets/js/remote/app.js in multi ./resources/assets/js/remote/app.js To install it, you can run: npm install --save /var/www/html/koel/resources/assets/js/remote/app.js Asset Size Chunks Chunk Names fonts/fontawesome-webfont.eot 166 kB [emitted] /js/app.6a4f547223458a730b74.js 569 bytes 0 [emitted] /js/app /css/app.e5040c33e4ca06a0b8f6.css 0 bytes 0 [emitted] /js/app /css/remote.e5040c33e4ca06a0b8f6.css 0 bytes 0 [emitted] /js/app mix-manifest.json 234 bytes [emitted] /js/remote/app.d41d8cd98f00b204e980.js 592 bytes 1 [emitted] /js/remote/app fonts/fontawesome-webfont.svg 444 kB [emitted] [big] fonts/fontawesome-webfont.ttf 166 kB [emitted] fonts/fontawesome-webfont.woff 98 kB [emitted] fonts/fontawesome-webfont.woff2 77.2 kB [emitted] fonts/FontAwesome.otf 135 kB [emitted] error An unexpected error occurred: "Command failed. Exit code: 2 Command: sh Arguments: -c cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js Directory: /var/www/html/koel Output: ". info If you think this is a bug, please open a bug report with the information provided in "/var/www/html/koel/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error An unexpected error occurred: "Command failed. Exit code: 1 Command: sh Arguments: -c yarn production Directory: /var/www/html/koel Output: ". info If you think this is a bug, please open a bug report with the information provided in "/var/www/html/koel/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. ``` So, Found solution, just created following files -resources | --assets | |---img | |---js | | | ---remote | | | | app.js | | | app.js | | | |---sass | | app.css | remote.scss
kerem closed this issue 2026-02-26 02:33:26 +03:00
Author
Owner

@ghost commented on GitHub (Mar 5, 2018):

Looks like assets folder is git repo dependency, by default git does not install subdirectory git repos, so you must install it manually.
doc must be updated!

<!-- gh-comment-id:370384449 --> @ghost commented on GitHub (Mar 5, 2018): Looks like assets folder is git repo dependency, by default git does not install subdirectory git repos, so you must install it manually. doc must be updated!
Author
Owner

@phanan commented on GitHub (Mar 5, 2018):

doc must be updated!

Nope. You're installing from master, which hasn't been documented. Expect bugs, too.

<!-- gh-comment-id:370418519 --> @phanan commented on GitHub (Mar 5, 2018): > doc must be updated! Nope. You're installing from `master`, which hasn't been documented. Expect bugs, too.
Author
Owner

@ghost commented on GitHub (Mar 6, 2018):

whats the point of this doc?
P.S this project also needs .htaccess

<!-- gh-comment-id:370910861 --> @ghost commented on GitHub (Mar 6, 2018): whats the point of this [doc](https://koel.phanan.net/docs/#/)? P.S this project also needs .htaccess
Author
Owner

@phanan commented on GitHub (Mar 7, 2018):

Are you new to software versioning, or just a troll? The doc is for stable releases, not the bleeding edge master branch. And the project has .htaccess of course https://github.com/phanan/koel/blob/master/.htaccess.

<!-- gh-comment-id:371027056 --> @phanan commented on GitHub (Mar 7, 2018): Are you new to software versioning, or just a troll? The doc is for stable releases, not the bleeding edge `master` branch. And the project has .htaccess of course https://github.com/phanan/koel/blob/master/.htaccess.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#514
No description provided.