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

Determine module search path order #49

Closed
chunseoklee opened this issue May 26, 2015 · 3 comments
Closed

Determine module search path order #49

chunseoklee opened this issue May 26, 2015 · 3 comments

Comments

@chunseoklee
Copy link
Contributor

Nodejs search for a module in the order of
(1) ./node_modules
(2) $NODE_PATH/node_modules
(3) $HOME/node_modules
(4) $HOME/node_libraries
(5) (node execpath)/node/lib

We need to determine the search order w.r.t. multiple plaforms since enviroment or cwd is not available in small devices.

@chunseoklee
Copy link
Contributor Author

current iotjs search path is documented in Module API

@seanshpark
Copy link
Contributor

Good

@yichoi
Copy link
Contributor

yichoi commented Sep 30, 2016

Closing since #417 merged.

Maybe we should re-consider the path with node in it. (in another issue)

@yichoi yichoi closed this as completed Sep 30, 2016
pmarcinkiew referenced this issue in pmarcinkiew/iotjs Aug 29, 2017
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

3 participants