Skip to content

Node js forever doesn't install properly #23

@sweyrick

Description

@sweyrick

When I run the node js example, forever doesn't properly install. Vagrant 1.8.1/ansible 2.0.0.2

TASK [Check list of running Node.js apps.] *************************************
fatal: [192.168.60.7]: FAILED! => {"changed": false, "cmd": "forever list", "failed": true, "invocation": {"module_args": {"_raw_params": "forever list", "_uses_shell": false, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "msg": "[Errno 2] No such file or directory", "rc": 2}

I updated the forever installation to use the command module instead of npm and it works properly.

  • name: Install Forever (to run our Node.js app).
    command: "npm install forever -g"

screen shot 2016-01-27 at 9 09 11 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions