[GH-ISSUE #63] Unexpected end of input when running: bower install && gulp --production #48

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

Originally created by @ghost on GitHub (Dec 15, 2015).
Original GitHub issue: https://github.com/koel/koel/issues/63

npm install
npm WARN package.json vue-hot-reload-api@1.2.2 No README data

koel@0.1.0 postinstall /var/www/koel
node node_modules/bower/bin/bower install && gulp --production

SyntaxError: Error parsing /var/www/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/insert-module-globals/node_modules/combine-source-map/package.json: Unexpected end of input
at Object.parse (native)
at readPackage (module.js:113:52)
at tryPackage (module.js:123:13)
at Function.Module._findPath (module.js:190:18)
at Function.Module._resolveFilename (module.js:336:25)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/var/www/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/insert-module-globals/index.js:8:24)
at Module._compile (module.js:456:26)

npm ERR! koel@0.1.0 postinstall: node node_modules/bower/bin/bower install && gulp --production
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the koel@0.1.0 postinstall script.
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! System Linux 4.1.12-6.pvops.qubes.x86_64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /var/www/koel
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/koel/npm-debug.log
npm ERR! not ok code 0

Originally created by @ghost on GitHub (Dec 15, 2015). Original GitHub issue: https://github.com/koel/koel/issues/63 > npm install > npm WARN package.json vue-hot-reload-api@1.2.2 No README data > > koel@0.1.0 postinstall /var/www/koel > node node_modules/bower/bin/bower install && gulp --production SyntaxError: Error parsing /var/www/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/insert-module-globals/node_modules/combine-source-map/package.json: Unexpected end of input at Object.parse (native) at readPackage (module.js:113:52) at tryPackage (module.js:123:13) at Function.Module._findPath (module.js:190:18) at Function.Module._resolveFilename (module.js:336:25) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/var/www/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/insert-module-globals/index.js:8:24) at Module._compile (module.js:456:26) npm ERR! koel@0.1.0 postinstall: `node node_modules/bower/bin/bower install && gulp --production` npm ERR! Exit status 8 npm ERR! npm ERR! Failed at the koel@0.1.0 postinstall script. 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! System Linux 4.1.12-6.pvops.qubes.x86_64 npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /var/www/koel npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! code ELIFECYCLE npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /var/www/koel/npm-debug.log npm ERR! not ok code 0
kerem closed this issue 2026-02-26 02:31:54 +03:00
Author
Owner

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

Can you try running bower install and gulp --production individually?

<!-- gh-comment-id:164970770 --> @phanan commented on GitHub (Dec 16, 2015): Can you try running `bower install` and `gulp --production` individually?
Author
Owner

@ghost commented on GitHub (Dec 16, 2015):

I already ran them individually, the problem is with bower, it shows exactly the same message, I installed all the dependencies and checked the permissions so I think it is a problem in the code.

<!-- gh-comment-id:165050126 --> @ghost commented on GitHub (Dec 16, 2015): I already ran them individually, the problem is with bower, it shows exactly the same message, I installed all the dependencies and checked the permissions so I think it is a problem in the code.
Author
Owner

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

Try npm cache clean?

<!-- gh-comment-id:165062290 --> @phanan commented on GitHub (Dec 16, 2015): Try `npm cache clean`?
Author
Owner

@ghost commented on GitHub (Dec 16, 2015):

I cannot test it until late afternoon, I will try and let you know, thanks

<!-- gh-comment-id:165062733 --> @ghost commented on GitHub (Dec 16, 2015): I cannot test it until late afternoon, I will try and let you know, thanks
Author
Owner

@ghost commented on GitHub (Dec 16, 2015):

I downloaded everything again and it worked from npm install, thanks for your help

<!-- gh-comment-id:165252452 --> @ghost commented on GitHub (Dec 16, 2015): I downloaded everything again and it worked from npm install, thanks for your help
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#48
No description provided.