0

In my situation I can't use npm publish to publish a package on internet, then npm install and use it! Don't want to publish it on remote server like nexus either. Is there any way to install it from pc cache with npm install command?

Ishan Thilina Somasiri
  • 1,179
  • 1
  • 12
  • 24
Behzad Jafari
  • 110
  • 1
  • 6

1 Answers1

0

I usually created a folder called examples an put into that a file called test.js and I declared a variable like this var myModule = require("../index.js") and then I declare the functions of my module like : myModule.substract() . Also I did read about a module called NPX, I don't use It yet.

Dharman
  • 30,962
  • 25
  • 85
  • 135
judlup
  • 119
  • 2
  • 15