Skip to content

Cannot find module when launch app through simlink #935

@hebedombiu

Description

@hebedombiu

Version: v8.5.0
Platform: Linux 3.10.0-327.13.1.el7.x86_64 #1 SMP Thu Mar 31 16:04:38 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I have dir structure:
app
|- lib -> /other/path/lib
|- node_modules

When I trying to launch: node lib/app.js
Console output:
module.js:529
throw err;
^

Error: Cannot find module ...
...

But, if I would have dir structure:
app
|- lib
|- node_modules

App launch normally

How I could fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions