Home > Back-end >  What is the purpose of npm link and how to use it in React JS Projects?
What is the purpose of npm link and how to use it in React JS Projects?

Time:08-08

As I am new to React JS and Node JS, I am unable to understand the purpose of npm link and how to use it in React JS Projects even from the npm documentation. It is appreciable to explain the same with example.

CodePudding user response:

From the documentation

cd ~/projects/node-redis    # go into the package directory
npm link                    # creates global link
cd ~/projects/node-bloggy   # go into some other package directory.
npm link redis         

CodePudding user response:

İ think you can create your own npm repository on your intranet. Npm alreay have a solution about that. And a private npm resity example is bit.dev you can check this.

  • Related