0

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,

WCdr
  • 185
  • 4
  • 12

1 Answers1

4

you can specify the dependency directy

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

for more information, consult the npm-install documentation

Mr.
  • 9,429
  • 13
  • 58
  • 82