[GH-ISSUE #1012] Installation Error on running php artisan koel:init #613

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

Originally created by @connecteev on GitHub (Jun 27, 2019).
Original GitHub issue: https://github.com/koel/koel/issues/1012

Installation Error on running
php artisan koel:init
When I go to http://127.0.0.1:8000/ after calling php artisan koel:init I see:
https://1ce.org/1#ByzHZhzgr

Terminal Logs:

OneStepAtATime:koel kunalpunjabi$ php artisan koel:init
Attempting to install or upgrade Koel.
Remember, you can always install/upgrade manually following the guide here:
📙  https://koel.phanan.net/docs

App key exists -- skipping
JWT secret exists -- skipping
Migrating database
Data seeded -- skipping
The absolute path to your media directory. If this is skipped (left blank) now, you can set it later via the web interface.

 Media path:
 > /Users/kunalpunjabi/Code/vuejs_examples/koel/public/koel_media

Compiling front-end stuff
yarn install v1.16.0
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > eslint-config-vue@2.0.2" has incorrect peer dependency "eslint@^2.0.0 || ^3.0.0".                                                                                                              
warning " > eslint-plugin-vue@1.0.0" has incorrect peer dependency "eslint@^2.0.0 || ^3.0.0".                                                                                                              
warning "eslint-plugin-vue > eslint-plugin-react@6.10.3" has incorrect peer dependency "eslint@^2.0.0 || ^3.0.0".                                                                                          
[4/4] Building fresh packages...
$ yarn production

yarn run v1.16.0
$ cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
 94% asset optimization[copy-webpack-plugin] WARNING - unable to locate 'resources/assets/img' at '/Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/img'
 95% emitting ERROR  Failed to compile with 4 errors1:57:29 PM

These dependencies were not found:

* /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/js/app.js in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss ./resources/assets/sass/remote.scss
* /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/js/remote/app.js in multi ./resources/assets/js/remote/app.js
* /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/sass/app.scss in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss ./resources/assets/sass/remote.scss
* /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/sass/remote.scss in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss ./resources/assets/sass/remote.scss

To install them, you can run: npm install --save /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/js/app.js /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/js/remote/app.js /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/sass/app.scss /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/sass/remote.scss
                                 Asset       Size  Chunks                    Chunk Names
/js/remote/app.d41d8cd98f00b204e980.js  623 bytes       0  [emitted]         /js/remote/app
       /js/app.d41d8cd98f00b204e980.js  878 bytes       1  [emitted]         /js/app
                     mix-manifest.json  118 bytes          [emitted]         
        fonts/fontawesome-webfont.woff      98 kB          [emitted]         
       fonts/fontawesome-webfont.woff2    77.2 kB          [emitted]         
                 fonts/FontAwesome.otf     135 kB          [emitted]         
         fonts/fontawesome-webfont.ttf     166 kB          [emitted]         
         fonts/fontawesome-webfont.eot     166 kB          [emitted]         
         fonts/fontawesome-webfont.svg     444 kB          [emitted]  [big]  
error Command failed with exit code 2.                                                                                                                                                                     
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.                                                                                                                                                                     
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

🎆  Success! Koel can now be run from localhost with `php artisan serve`.
You can also scan for media with `php artisan koel:sync`.
Again, for more configuration guidance, refer to
📙  https://koel.phanan.net/docs
or open the .env file in the root installation folder.
Thanks for using Koel. You rock!
OneStepAtATime:koel kunalpunjabi$ pas
Laravel development server started: <http://127.0.0.1:8000>
^X^C
OneStepAtATime:koel kunalpunjabi$ 
OneStepAtATime:koel kunalpunjabi$ npm install --save /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/js/app.js /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/js/remote/app.js /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/sass/app.scss /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/sass/remote.scss
npm ERR! code ENOLOCAL
npm ERR! Could not install from "resources/assets/js/app.js" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/kunalpunjabi/.npm/_logs/2019-06-27T21_10_25_822Z-debug.log
Originally created by @connecteev on GitHub (Jun 27, 2019). Original GitHub issue: https://github.com/koel/koel/issues/1012 Installation Error on running ```php artisan koel:init``` When I go to http://127.0.0.1:8000/ after calling ```php artisan koel:init``` I see: https://1ce.org/1#ByzHZhzgr Terminal Logs: ``` OneStepAtATime:koel kunalpunjabi$ php artisan koel:init Attempting to install or upgrade Koel. Remember, you can always install/upgrade manually following the guide here: 📙 https://koel.phanan.net/docs App key exists -- skipping JWT secret exists -- skipping Migrating database Data seeded -- skipping The absolute path to your media directory. If this is skipped (left blank) now, you can set it later via the web interface. Media path: > /Users/kunalpunjabi/Code/vuejs_examples/koel/public/koel_media Compiling front-end stuff yarn install v1.16.0 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... warning " > eslint-config-vue@2.0.2" has incorrect peer dependency "eslint@^2.0.0 || ^3.0.0". warning " > eslint-plugin-vue@1.0.0" has incorrect peer dependency "eslint@^2.0.0 || ^3.0.0". warning "eslint-plugin-vue > eslint-plugin-react@6.10.3" has incorrect peer dependency "eslint@^2.0.0 || ^3.0.0". [4/4] Building fresh packages... $ yarn production yarn run v1.16.0 $ cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js 94% asset optimization[copy-webpack-plugin] WARNING - unable to locate 'resources/assets/img' at '/Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/img' 95% emitting ERROR Failed to compile with 4 errors1:57:29 PM These dependencies were not found: * /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/js/app.js in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss ./resources/assets/sass/remote.scss * /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/js/remote/app.js in multi ./resources/assets/js/remote/app.js * /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/sass/app.scss in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss ./resources/assets/sass/remote.scss * /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/sass/remote.scss in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss ./resources/assets/sass/remote.scss To install them, you can run: npm install --save /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/js/app.js /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/js/remote/app.js /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/sass/app.scss /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/sass/remote.scss Asset Size Chunks Chunk Names /js/remote/app.d41d8cd98f00b204e980.js 623 bytes 0 [emitted] /js/remote/app /js/app.d41d8cd98f00b204e980.js 878 bytes 1 [emitted] /js/app mix-manifest.json 118 bytes [emitted] fonts/fontawesome-webfont.woff 98 kB [emitted] fonts/fontawesome-webfont.woff2 77.2 kB [emitted] fonts/FontAwesome.otf 135 kB [emitted] fonts/fontawesome-webfont.ttf 166 kB [emitted] fonts/fontawesome-webfont.eot 166 kB [emitted] fonts/fontawesome-webfont.svg 444 kB [emitted] [big] error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 🎆 Success! Koel can now be run from localhost with `php artisan serve`. You can also scan for media with `php artisan koel:sync`. Again, for more configuration guidance, refer to 📙 https://koel.phanan.net/docs or open the .env file in the root installation folder. Thanks for using Koel. You rock! OneStepAtATime:koel kunalpunjabi$ pas Laravel development server started: <http://127.0.0.1:8000> ^X^C OneStepAtATime:koel kunalpunjabi$ OneStepAtATime:koel kunalpunjabi$ npm install --save /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/js/app.js /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/js/remote/app.js /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/sass/app.scss /Users/kunalpunjabi/Code/vuejs_examples/koel/resources/assets/sass/remote.scss npm ERR! code ENOLOCAL npm ERR! Could not install from "resources/assets/js/app.js" as it does not contain a package.json file. npm ERR! A complete log of this run can be found in: npm ERR! /Users/kunalpunjabi/.npm/_logs/2019-06-27T21_10_25_822Z-debug.log ```
kerem closed this issue 2026-02-26 02:33:42 +03:00
Author
Owner

@connecteev commented on GitHub (Jun 30, 2019):

ANy idea how to fix this? :(

<!-- gh-comment-id:507041914 --> @connecteev commented on GitHub (Jun 30, 2019): ANy idea how to fix this? :(
Author
Owner

@phanan commented on GitHub (Jun 30, 2019):

Yes. Please follow the doc and adhere to the issue template.

Kunal Punjabi notifications@github.com schrieb am So. 30. Juni 2019 um
16:42:

ANy idea how to fix this? :(


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/phanan/koel/issues/1012?email_source=notifications&email_token=AB5O3UXADZFI75VK4GFHIK3P5DA6TA5CNFSM4H4AHXWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY4NQ6Q#issuecomment-507041914,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB5O3UWBN6YCXNLGYD7XM4LP5DA6TANCNFSM4H4AHXWA
.

<!-- gh-comment-id:507047321 --> @phanan commented on GitHub (Jun 30, 2019): Yes. Please follow the doc and adhere to the issue template. Kunal Punjabi <notifications@github.com> schrieb am So. 30. Juni 2019 um 16:42: > ANy idea how to fix this? :( > > — > You are receiving this because you modified the open/close state. > Reply to this email directly, view it on GitHub > <https://github.com/phanan/koel/issues/1012?email_source=notifications&email_token=AB5O3UXADZFI75VK4GFHIK3P5DA6TA5CNFSM4H4AHXWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY4NQ6Q#issuecomment-507041914>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AB5O3UWBN6YCXNLGYD7XM4LP5DA6TANCNFSM4H4AHXWA> > . >
Author
Owner

@chengjingfeng commented on GitHub (Jul 31, 2019):

the resource is local at here, need to download by yourself: https://github.com/koel/core.git

<!-- gh-comment-id:516681056 --> @chengjingfeng commented on GitHub (Jul 31, 2019): the resource is local at here, need to download by yourself: https://github.com/koel/core.git
Author
Owner

@chengjingfeng commented on GitHub (Jul 31, 2019):

cd PUBLIC_DIR
git clone https://github.com/phanan/koel.git .
cd koel
git checkout v3.7.0 # Check out the latest version at https://github.com/phanan/koel/releases
cd kole/resource/asset
git clone https://github.com/koel/core.git to get asset resource
npm install
composer install
php artisan koel:init # Populate credentials during the process
php artisan serve --host 0.0.0.0 --port=8001

<!-- gh-comment-id:516820841 --> @chengjingfeng commented on GitHub (Jul 31, 2019): cd PUBLIC_DIR git clone https://github.com/phanan/koel.git . cd koel git checkout v3.7.0 # Check out the latest version at https://github.com/phanan/koel/releases cd kole/resource/asset git clone https://github.com/koel/core.git to get asset resource npm install composer install php artisan koel:init # Populate credentials during the process php artisan serve --host 0.0.0.0 --port=8001
Author
Owner

@connecteev commented on GitHub (Jul 31, 2019):

@chengjingfeng @phanan I keep getting this error after following the installation steps.

https://prnt.sc/omkzp1


(2/2) ErrorException
file_get_contents(/Users/kunalpunjabi/Code/EXPLORATIONS/koel/public/mix-manifest.json): failed to open stream: No such file or directory (View: /Users/kunalpunjabi/Code/EXPLORATIONS/koel/resources/views/index.blade.php)

(2/2) ErrorException
File /css/app.css not defined in asset manifest. (View: /Users/kunalpunjabi/Code/EXPLORATIONS/koel/resources/views/index.blade.php)

<!-- gh-comment-id:516926763 --> @connecteev commented on GitHub (Jul 31, 2019): @chengjingfeng @phanan I keep getting this error after following the installation steps. https://prnt.sc/omkzp1 ``` (2/2) ErrorException file_get_contents(/Users/kunalpunjabi/Code/EXPLORATIONS/koel/public/mix-manifest.json): failed to open stream: No such file or directory (View: /Users/kunalpunjabi/Code/EXPLORATIONS/koel/resources/views/index.blade.php) (2/2) ErrorException File /css/app.css not defined in asset manifest. (View: /Users/kunalpunjabi/Code/EXPLORATIONS/koel/resources/views/index.blade.php) ```
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#613
No description provided.