Npm install the code using github repository

Npm install the code using github repository
when we use npm download package, usually downloaded npm posted in the official website. You can specify the version, specify dependencies and so on.

However, for a team or company, you need to pull the code from your work account, npm directly support the installation from the git repository.

A recent issue, can only be installed from my own fork of vue2-scrollbar project. Although it has been PR, but the authors are not updated.

installation method

or

At this time, package.json file, there will be dependent on the corresponding item, the latter will be replaced with the version number of the address git

In this way, as long as the json file unchanged, we will be able to correct the installation of this component.

Reference article: https://huixisheng.github.io/npm-install/

Guess you like

Origin www.cnblogs.com/yasepix/p/11028902.html