Skip to content

Mean-admin deploy to heroku "postinstall", Mean 0.0.4 #13

@adle29

Description

@adle29

When I try to deploy my app to heroku I get the following error:

 0761 info [email protected] Failed to exec postinstall script
10762 error [email protected] postinstall: `mean postinstall`
10762 error Exit status 8
10763 error Failed at the [email protected] postinstall script.
10763 error This is most likely a problem with the mean-admin package,
10763 error not with npm itself.
10763 error Tell the author that this fails on your system:
10763 error     mean postinstall
10763 error You can get their info via:
10763 error     npm owner ls mean-admin
10763 error There is likely additional logging output above.
10764 error System Linux 3.8.11-ec2
10765 error command "/tmp/build_f4ca4d87-a101-41a2-9437-c36f366357e7/vendor/node/bin/node"     "/tmp/build_f4ca4d87-a101-41a2-9437-c36f366357e7/vendor/node/bin/npm" "rebuild"
10766 error cwd /tmp/build_f4ca4d87-a101-41a2-9437-c36f366357e7
10767 error node -v v0.10.30
10768 error npm -v 1.4.21
10769 error code ELIFECYCLE
10770 verbose exit [ 1, true ] 

Stats
MEAN Version: 0.4.0
Node Version: v0.10.26
Meanio cli 0.6.4
Mac

Packages:
Mean-admin
Mean-upload

This issue has already been addressed here issue:#501 but not solved completely .

Possible solutions I have tried but have failed:

  1. I already added "mean-admin": "linnovate/mean-admin".
  2. change "mean postinstall" to "bower install"
  3. "heroku config:set NODE_ENV=production" and "git push heroku master"
  4. Change "postinstall": "./node_modules/bower/bin/bower install"
  5. Remove the postinstall script,fails; also mean-upload fails.
  6. heroku repo:purge_cache
  7. Adding .npmignore file.
  8. Added
       {
            "storage": {
               "packages": ".bower/cache",
               "registry": ".bower/registry"
             },
              "tmp": ".bower/tmp"
       }

9...still thinking...

Sites with the solutions that did not work for me:
stackoverflow-Deploy to heroku

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions