How can I require a module that is a dependencie for another module? For example:
Project/foo.js
Project/nodule_modules/MyModule/node_modules/AnotherModule //dependencie of MyModule
How can I require “AnotherModule” from the foo.js file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use in the
foo.jsmodule:See http://nodejs.org/api/modules.html#modules_file_modules