[GH-ISSUE #107] Unable to setup Koel #74

Closed
opened 2026-02-26 02:32:02 +03:00 by kerem · 11 comments
Owner

Originally created by @gau1991 on GitHub (Dec 18, 2015).
Original GitHub issue: https://github.com/koel/koel/issues/107

Hey hi
Getting error as,

file_get_contents(/var/www/1.com/htdocs/public/build/rev-manifest.json): failed to open stream: No such file or directory (View: /var/www/1.com/htdocs/resources/views/index.blade.php)
Originally created by @gau1991 on GitHub (Dec 18, 2015). Original GitHub issue: https://github.com/koel/koel/issues/107 Hey hi Getting error as, ``` file_get_contents(/var/www/1.com/htdocs/public/build/rev-manifest.json): failed to open stream: No such file or directory (View: /var/www/1.com/htdocs/resources/views/index.blade.php) ```
kerem closed this issue 2026-02-26 02:32:02 +03:00
Author
Owner

@wdmtech commented on GitHub (Dec 18, 2015):

@gau1991: You need to run npm install

<!-- gh-comment-id:165761947 --> @wdmtech commented on GitHub (Dec 18, 2015): @gau1991: You need to run `npm install`
Author
Owner

@gau1991 commented on GitHub (Dec 18, 2015):

I got following output:

www-data@vagrant-ubuntu-trusty-64:~/1.com/htdocs$ npm install
npm ERR! registry error parsing json
npm WARN optional dep failed, continuing fsevents@1.0.6
|
npm WARN optional dep failed, continuing fsevents@1.0.6
npm WARN optional dep failed, continuing fsevents@1.0.6

> expect@1.13.4 postinstall /var/www/1.com/htdocs/node_modules/laravel-elixir/node_modules/gulp-phpspec/node_modules/expect
> node ./npm-scripts/postinstall.js


/
www-data@vagrant-ubuntu-trusty-64:~/1.com/htdocs$ 
www-data@vagrant-ubuntu-trusty-64:~/1.com/htdocs$ ls -l
total 1452
drwxr-xr-x 14 www-data www-data    4096 Dec 18 13:29 app
-rwxr-xr-x  1 www-data www-data    1646 Dec 18 13:29 artisan
drwxr-xr-x  3 www-data www-data    4096 Dec 18 13:29 bootstrap
-rw-r--r--  1 www-data www-data     437 Dec 18 13:29 bower.json
-rw-r--r--  1 www-data www-data     461 Dec 18 13:29 browserconfig.xml
-rw-r--r--  1 www-data www-data    1434 Dec 18 13:29 composer.json
-rw-r--r--  1 www-data www-data  118206 Dec 18 13:29 composer.lock
drwxr-xr-x  2 www-data www-data    4096 Dec 18 13:29 config
drwxr-xr-x  5 www-data www-data    4096 Dec 18 13:29 database
-rw-r--r--  1 www-data www-data    4286 Dec 18 13:29 favicon.ico
-rw-r--r--  1 www-data www-data     765 Dec 18 13:29 gulpfile.js
-rw-r--r--  1 www-data www-data    1760 Dec 18 13:29 index.php
-rw-r--r--  1 www-data www-data    1074 Dec 18 13:29 LICENSE.md
-rw-r--r--  1 www-data www-data    1086 Dec 18 13:29 nginx.conf.example
drwxrwxr-x 26 www-data www-data    4096 Dec 18 13:33 node_modules
-rw-rw-r--  1 www-data www-data 1266783 Dec 18 13:34 npm-debug.log
-rw-r--r--  1 www-data www-data    1259 Dec 18 13:29 package.json
-rw-r--r--  1 www-data www-data      87 Dec 18 13:29 phpspec.yml
-rw-r--r--  1 www-data www-data     921 Dec 18 13:29 phpunit.xml
-rw-r--r--  1 www-data www-data     575 Dec 18 13:29 README.md
drwxr-xr-x  5 www-data www-data    4096 Dec 18 13:29 resources
-rw-r--r--  1 www-data www-data      24 Dec 18 13:29 robots.txt
-rw-r--r--  1 www-data www-data     529 Dec 18 13:29 server.php
drwxr-xr-x  4 www-data www-data    4096 Dec 18 13:29 storage
drwxr-xr-x  4 www-data www-data    4096 Dec 18 13:29 tests
www-data@vagrant-ubuntu-trusty-64:~/1.com/htdocs$ 

npm version:

www-data@vagrant-ubuntu-trusty-64:~/1.com/htdocs$ npm -v
2.14.7
<!-- gh-comment-id:165780445 --> @gau1991 commented on GitHub (Dec 18, 2015): I got following output: ``` www-data@vagrant-ubuntu-trusty-64:~/1.com/htdocs$ npm install npm ERR! registry error parsing json npm WARN optional dep failed, continuing fsevents@1.0.6 | npm WARN optional dep failed, continuing fsevents@1.0.6 npm WARN optional dep failed, continuing fsevents@1.0.6 > expect@1.13.4 postinstall /var/www/1.com/htdocs/node_modules/laravel-elixir/node_modules/gulp-phpspec/node_modules/expect > node ./npm-scripts/postinstall.js / www-data@vagrant-ubuntu-trusty-64:~/1.com/htdocs$ www-data@vagrant-ubuntu-trusty-64:~/1.com/htdocs$ ls -l total 1452 drwxr-xr-x 14 www-data www-data 4096 Dec 18 13:29 app -rwxr-xr-x 1 www-data www-data 1646 Dec 18 13:29 artisan drwxr-xr-x 3 www-data www-data 4096 Dec 18 13:29 bootstrap -rw-r--r-- 1 www-data www-data 437 Dec 18 13:29 bower.json -rw-r--r-- 1 www-data www-data 461 Dec 18 13:29 browserconfig.xml -rw-r--r-- 1 www-data www-data 1434 Dec 18 13:29 composer.json -rw-r--r-- 1 www-data www-data 118206 Dec 18 13:29 composer.lock drwxr-xr-x 2 www-data www-data 4096 Dec 18 13:29 config drwxr-xr-x 5 www-data www-data 4096 Dec 18 13:29 database -rw-r--r-- 1 www-data www-data 4286 Dec 18 13:29 favicon.ico -rw-r--r-- 1 www-data www-data 765 Dec 18 13:29 gulpfile.js -rw-r--r-- 1 www-data www-data 1760 Dec 18 13:29 index.php -rw-r--r-- 1 www-data www-data 1074 Dec 18 13:29 LICENSE.md -rw-r--r-- 1 www-data www-data 1086 Dec 18 13:29 nginx.conf.example drwxrwxr-x 26 www-data www-data 4096 Dec 18 13:33 node_modules -rw-rw-r-- 1 www-data www-data 1266783 Dec 18 13:34 npm-debug.log -rw-r--r-- 1 www-data www-data 1259 Dec 18 13:29 package.json -rw-r--r-- 1 www-data www-data 87 Dec 18 13:29 phpspec.yml -rw-r--r-- 1 www-data www-data 921 Dec 18 13:29 phpunit.xml -rw-r--r-- 1 www-data www-data 575 Dec 18 13:29 README.md drwxr-xr-x 5 www-data www-data 4096 Dec 18 13:29 resources -rw-r--r-- 1 www-data www-data 24 Dec 18 13:29 robots.txt -rw-r--r-- 1 www-data www-data 529 Dec 18 13:29 server.php drwxr-xr-x 4 www-data www-data 4096 Dec 18 13:29 storage drwxr-xr-x 4 www-data www-data 4096 Dec 18 13:29 tests www-data@vagrant-ubuntu-trusty-64:~/1.com/htdocs$ ``` npm version: ``` www-data@vagrant-ubuntu-trusty-64:~/1.com/htdocs$ npm -v 2.14.7 ```
Author
Owner

@ch4m17ux commented on GitHub (Dec 18, 2015):

Hi buddy

This issue is recurrent, and only refers us to run npm install or bower install && gulp --production, but this error persists.

Anyone has a functional online demo?

<!-- gh-comment-id:165802070 --> @ch4m17ux commented on GitHub (Dec 18, 2015): Hi buddy This issue is recurrent, and only refers us to run npm install or bower install && gulp --production, but this error persists. Anyone has a functional online demo?
Author
Owner

@gafish04 commented on GitHub (Dec 18, 2015):

Hi everybody,

Same problem for me.
npm install said
npm WARN cannot run in wd koel@0.1.0 node node_modules/bower/bin/bower install && gulp --production (wd=/var/www/koel)

and I've got a problem with Koel interface
ErrorException in Application.php line 36:
file_get_contents(/var/www/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory (View: /var/www/koel/resources/views/index.blade.php)

Regards

<!-- gh-comment-id:165823568 --> @gafish04 commented on GitHub (Dec 18, 2015): Hi everybody, Same problem for me. npm install said npm WARN cannot run in wd koel@0.1.0 node node_modules/bower/bin/bower install && gulp --production (wd=/var/www/koel) and I've got a problem with Koel interface ErrorException in Application.php line 36: file_get_contents(/var/www/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory (View: /var/www/koel/resources/views/index.blade.php) Regards
Author
Owner

@Porco-Rosso commented on GitHub (Dec 18, 2015):

I'm having the same issue, anyone has any insights?

Edit:
https://github.com/phanan/koel/wiki/Troubleshooting this page mentions the problem, but the fix does not work.
Running npm install
I get: cannot run in wd koel@0.1.0 node node_modules/bower/bin/bower install && gulp --production (wd=/root/koel)

Running bower install --allow-root && gulp --production
I get:

module.js:339
    throw err;
    ^

Error: Cannot find module 'module-deps'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/root/koel/node_modules/laravel-elixir/node_modules/browserify/index.js:1:75)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
<!-- gh-comment-id:165840658 --> @Porco-Rosso commented on GitHub (Dec 18, 2015): I'm having the same issue, anyone has any insights? Edit: https://github.com/phanan/koel/wiki/Troubleshooting this page mentions the problem, but the fix does not work. Running `npm install` I get: `cannot run in wd koel@0.1.0 node node_modules/bower/bin/bower install && gulp --production (wd=/root/koel)` Running `bower install --allow-root && gulp --production` I get: ``` module.js:339 throw err; ^ Error: Cannot find module 'module-deps' at Function.Module._resolveFilename (module.js:337:15) at Function.Module._load (module.js:287:25) at Module.require (module.js:366:17) at require (module.js:385:17) at Object.<anonymous> (/root/koel/node_modules/laravel-elixir/node_modules/browserify/index.js:1:75) at Module._compile (module.js:435:26) at Object.Module._extensions..js (module.js:442:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:311:12) at Module.require (module.js:366:17) at require (module.js:385:17) ```
Author
Owner

@bonyboy commented on GitHub (Dec 18, 2015):

@gafish04 I'm having the same ErrorException as you.

<!-- gh-comment-id:165857872 --> @bonyboy commented on GitHub (Dec 18, 2015): @gafish04 I'm having the same ErrorException as you.
Author
Owner

@phanan commented on GitHub (Dec 19, 2015):

See this: https://github.com/phanan/koel/wiki/Troubleshooting

<!-- gh-comment-id:165934794 --> @phanan commented on GitHub (Dec 19, 2015): See this: https://github.com/phanan/koel/wiki/Troubleshooting
Author
Owner

@gafish04 commented on GitHub (Dec 19, 2015):

Hi,

I've seen the troubleshooting section. I've seen the ticket is close.
But as I said, and as an other user said, that doesn't work.

  • npm install result :

Step : node node_modules/bower/bin/bower install && gulp --production
that doesn't work too. It stops here :

bower plyr#~1.3.6 ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/selz/plyr.git", exit code of #128 fatal: unable to connect to github.com: github.com[0: 192.30.252.128]: errno=Connexion termin?e par expiration du d?lai d'attente

and after :

npm ERR! Linux 3.2.0-4-686-pae
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.3
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! koel@0.1.0 postinstall: node node_modules/bower/bin/bower install && gulp --production
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the koel@0.1.0 postinstall script 'node node_modules/bower/bin/bower install && gulp --production'.
npm ERR! This is most likely a problem with the koel package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node node_modules/bower/bin/bower install && gulp --production
npm ERR! You can get their info via:
npm ERR! npm owner ls koel
npm ERR! There is likely additional logging output above.
npm ERR! Linux 3.2.0-4-686-pae
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.3
npm ERR! npm v2.14.7
npm ERR! path npm-debug.log.8b27229d002839a0871b061623e1c0be
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open

npm ERR! Error: EACCES: permission denied, open 'npm-debug.log.8b27229d002839a0871b061623e1c0be'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, open 'npm-debug.log.8b27229d002839a0871b061623e1c0be']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: 'npm-debug.log.8b27229d002839a0871b061623e1c0be' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /var/www/koel/npm-debug.log

My environment :
PHP : PHP 5.5.30-1~dotdeb+7.1
Debian Wheezy

Regards

<!-- gh-comment-id:165960401 --> @gafish04 commented on GitHub (Dec 19, 2015): Hi, I've seen the troubleshooting section. I've seen the ticket is close. But as I said, and as an other user said, that doesn't work. - npm install result : Step : node node_modules/bower/bin/bower install && gulp --production that doesn't work too. It stops here : bower plyr#~1.3.6 ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/selz/plyr.git", exit code of #128 fatal: unable to connect to github.com: github.com[0: 192.30.252.128]: errno=Connexion termin?e par expiration du d?lai d'attente and after : npm ERR! Linux 3.2.0-4-686-pae npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v4.2.3 npm ERR! npm v2.14.7 npm ERR! code ELIFECYCLE npm ERR! koel@0.1.0 postinstall: `node node_modules/bower/bin/bower install && gulp --production` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the koel@0.1.0 postinstall script 'node node_modules/bower/bin/bower install && gulp --production'. npm ERR! This is most likely a problem with the koel package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node node_modules/bower/bin/bower install && gulp --production npm ERR! You can get their info via: npm ERR! npm owner ls koel npm ERR! There is likely additional logging output above. npm ERR! Linux 3.2.0-4-686-pae npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v4.2.3 npm ERR! npm v2.14.7 npm ERR! path npm-debug.log.8b27229d002839a0871b061623e1c0be npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall open npm ERR! Error: EACCES: permission denied, open 'npm-debug.log.8b27229d002839a0871b061623e1c0be' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, open 'npm-debug.log.8b27229d002839a0871b061623e1c0be'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'open', npm ERR! path: 'npm-debug.log.8b27229d002839a0871b061623e1c0be' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! Please include the following file with any support request: npm ERR! /var/www/koel/npm-debug.log My environment : PHP : PHP 5.5.30-1~dotdeb+7.1 Debian Wheezy Regards
Author
Owner

@jacopo-j commented on GitHub (Dec 21, 2015):

Same here. Solution doesn't work.

<!-- gh-comment-id:166308654 --> @jacopo-j commented on GitHub (Dec 21, 2015): Same here. Solution doesn't work.
Author
Owner

@phanan commented on GitHub (Dec 21, 2015):

See my answer here #126.

<!-- gh-comment-id:166308932 --> @phanan commented on GitHub (Dec 21, 2015): See my answer here #126.
Author
Owner

@crushcafeteria commented on GitHub (Jan 27, 2018):

please use sudo. npm is having filesystem access issues, assuming you are using Linux

<!-- gh-comment-id:360971142 --> @crushcafeteria commented on GitHub (Jan 27, 2018): please use sudo. npm is having filesystem access issues, assuming you are using Linux
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#74
No description provided.