-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
Compiling into a Python virtual environment and the node_modules path is wrong. #17612
Comments
How are you installing it? Where does the binary come from? |
I get this result.
If I set |
This is working as documented -- Note that By design Node.js does not look in |
I've been building packages for over 30 years. I have never seen a package that doesn't know where its own resources are. I consider this bad design if this is the way it's documented. The docs say that with the new way node finds packages it lessons the need for the environment variable Just google "node cannot find module" and see how many people have this issue. |
I'm going to close this out because it's working as expected (as has been explained) and it's not something we'll change lightly. |
I'm installing the latest version 9.2.1 as of this writing. though this issue exists at least back to version 8.9.3. After doing the install and running
module
at the node prompt I see that the path tonode_modules
is wrong. It's missing_modules
after/home/cnobile/.virtualenvs/realm/lib/node
. I altered the actual username.Linux eggwarmer 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: