How to install a node.js module without using npm?
-
There are quite a few modules which are listed https://github.com/joyent/node/wiki/modules but are not published with the npm-registry. These modules can't be installed using npm. What is the correct way to install these nodejs modules after cloning them from Git?
-
Answer:
You need to download their source from the github. Find the main file and then include it in your main file. An example of this can be found here > http://stackoverflow.com/questions/5778474/uploaing-file-in-node-js/5780829#5780829 Usually you need to find the source and go through the package.json file. There you can find which is the main file. So that you can include that in your application. To include example.js in your app. Copy it in your application folder and append this on the top of your main js file. var moduleName = require("path/to/example.js")
vivekian2 at Stack Overflow Visit the source
Related Q & A:
- how to browserify a node-js module?Best solution by Stack Overflow
- How to install a radio in a 99 Honda Civic?Best solution by Yahoo! Answers
- How to install a CB in a car?Best solution by Yahoo! Answers
- How can I sell something on ebay without using a credit card?Best solution by Yahoo! Answers
- How to install a short shifter in a 1991 Honda Crx?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.