Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module when launch app through simlink #935

Closed
hebedombiu opened this issue Oct 30, 2017 · 3 comments
Closed

Cannot find module when launch app through simlink #935

hebedombiu opened this issue Oct 30, 2017 · 3 comments

Comments

@hebedombiu
Copy link

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?

@Knighton910
Copy link
Contributor

@hebedombiu Did you fix this issue? And can you show code in app.js

@ORESoftware
Copy link

yeah just share your project, instead of this unintelligible stuff.

@richardlau
Copy link
Member

@hebedombiu have you tried the --preserve-symlinks command line option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants