Search code examples
file-uploadnode.jsmultipart

How to manually install a node.js module?


I want to upload a file to s3 so I want to run the upload program from this article: http://www.componentix.com/blog/9

For this I need to install the multipart module. https://github.com/isaacs/multipart-js

But by doing npm install multipart it is giving error

How should I install this multipart module so that I can get this program running?


Solution

  • Download lib folder from the https://github.com/isaacs/multipart-js (including all the files inside it).

    Put all those files next to your node application in the same folder.

    On the top of your application file where you have included other modules like HTTP etc. ..append this >

    var multipart = require("./multipart")