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

Error: Cannot find module for required file from global bin folder. #6710

Closed
roadhump opened this issue May 12, 2016 · 2 comments
Closed

Error: Cannot find module for required file from global bin folder. #6710

roadhump opened this issue May 12, 2016 · 2 comments
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. module Issues and PRs related to the module subsystem.

Comments

@roadhump
Copy link

  • Version: v6.1.0 (npm v3.8.6)
  • Platform: Darwin roadhump-desktop.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
  • Subsystem:

I found an issue with gh + gh-travis, but now I suppose it is a common node problem.

bin script from first module requires bin script from second module from node global bin folder (gets path by which command), which requires modules from this second module node_modules folder. It works fine for node 5.x, but it does not for node 6.x.

Here a test case https:/roadhump/node-require-bug

cd ./main
npm link
cd ../plugin
npm link

node-test-req-main

Works fine for node.js 5.x, but throws Error: Cannot find module 'open' for node.js 6.x

I checked backlog and did not found any mention of such changes, so I suppose it is a bug.

@addaleax
Copy link
Member

This is already being taken care of in #6537, I’d say.

@addaleax addaleax added duplicate Issues and PRs that are duplicates of other issues or PRs. module Issues and PRs related to the module subsystem. labels May 12, 2016
@roadhump
Copy link
Author

@addaleax Yes, It seems like that, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. module Issues and PRs related to the module subsystem.
Projects
None yet
Development

No branches or pull requests

2 participants