Skip to content

Cannot find module when launch app through simlink #935

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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