Answer the question
In order to leave comments, you need to log in
How to specify a folder for your modules in Node.js (without npm)?
I made a test index.js file in the folder:
C:\@repositories\element2\index.js
process.env.NODE_PATH = "C:\\@repositories\\element2\\modules";
require("node-firebird-promise-old");
module.js:471
throw err;
^
Error: Cannot find module 'node-firebird-promise-old'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question