NPM install part from github monorepo

Viewed 436

I'm trying to install typescript plugin from rollup plugins monorepo (actually a branch with a PR from this repo).

I guess the following command tries to install the whole repo:

npm install git+https://github.com/rollup/plugins.git.

It also fails at their disallow-npm.js, I guess a guard for this kind of thing.

How can I pull and install only one plugin from this monorepo?

1 Answers

relating to your problem I found an article that talks about installation of NPM modules from Github repos:

How to install NPM modules from Github Repos

Being more accurate to your question, that repo has a Readme on each package that you can use to install the modules from that Github repo.

npm install @rollup/plugin-alias

The code about should be valid to install the module "plugin-alias" from that "rollup" repo.

I hope this helps to solve your problem, regards.

Related