mongorilla icon indicating copy to clipboard operation
mongorilla copied to clipboard

Elifecycle ERR

Open damianbuttle opened this issue 7 years ago • 5 comments

When I either clone or run npm install mongorilla, it throws the following error:

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: ./node_modules/bower/bin/bower install npm ERR! Exit status 1

Any Ideas? I cleaned the cache and tried to reinstall but it didn't work.

damianbuttle avatar Jun 14 '18 18:06 damianbuttle

Hmm.. are you using Windows?

gerardobort avatar Jun 14 '18 18:06 gerardobort

Or... maybe the bower package had a breaking change recently. That dependency is not fixed at any major version (it's using "*"), so that might be the problem.

gerardobort avatar Jun 14 '18 18:06 gerardobort

I am using windows.

damianbuttle avatar Jun 14 '18 18:06 damianbuttle

@damianbuttle Ok, that's the thing. The postinstall command is for UNIX compatible OSs. You may have to run these commands manually in a Windows compatible way (no idea, sorry):

./node_modules/bower/bin/bower install && ./node_modules/requirejs/bin/r.js -o public/app.build.js

From: https://github.com/gerardobort/mongorilla/blob/master/package.json#L7

gerardobort avatar Jun 14 '18 18:06 gerardobort

I added linux as a subsystem OS and it works perfectly. Whenever I try to create content it says URI required but the input field is greyed out.

damianbuttle avatar Jun 15 '18 02:06 damianbuttle