Thanks to visit codestin.com
Credit goes to github.com

Skip to content

foreverpath not found #92

@vyatsun

Description

@vyatsun

I'm trying to install a service with forever-service with the command:

sudo forever-service install webserver --script server.js -e "PORT=80"

but getting the following error:

forever-service version 0.5.9

Platform - Ubuntu 14.04.5 LTS
foreverpath not found
path.js:7
    throw new TypeError('Path must be a string. Received ' + inspect(path));
    ^

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at Command.<anonymous> (/usr/lib/node_modules/forever-service/bin/forever-service:89:34)
    at Command.listener (/usr/lib/node_modules/forever-service/node_modules/commander/index.js:249:8)
    at emitTwo (events.js:106:13)
    at Command.emit (events.js:194:7)
    at Command.parseArgs (/usr/lib/node_modules/forever-service/node_modules/commander/index.js:480:12)
    at Command.parse (/usr/lib/node_modules/forever-service/node_modules/commander/index.js:372:21)
    at /usr/lib/node_modules/forever-service/bin/forever-service:175:23
    at Walker.<anonymous> (/usr/lib/node_modules/forever-service/lib/platforms.js:28:3)

Nodejs version is 8.0
Any ideas how to fix that?

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