c++node.jsnpmgyp

How add a private\custom Node.js module on package.json


I create a custom node.js plugins in c++ using gyp.

My plugin is not published\public yet so it's not describe on package.json. I need copy it manually on my node_modules... It's not perfect but it works...

How describe it on package.json to allow npm to retrieve it, compile it and made it visible from my node application without publish it ?

Thanks for your help,


Solution

  • you can specify the dependency directy

    npm install --save /path/to/your/module
    

    for more information, consult the npm-install documentation