0

While installing popper.js using npm i --save popper, it started installing other packages rather than popper.js as you can see in the picture below. Why is it downloading ngrok-stable-windows-amd64 which I have encircled in red in the picture. Click here to view the image

  • 1
    Are you asking because you know what `ngrok` is but you don't understand why `popper.js` depends on it - or are you asking because you don't know what `ngrok` is in the first place? – Dai Nov 13 '20 at 07:05
  • I don't know any of two questions you asked above. Can you please tell a little bit about it. It will be very helpful. – Achal Kumar Rai Nov 13 '20 at 07:19

1 Answers1

0

Ngrok is an optional dependency of popper, used for tunneling.

You can skip its installation by using --no-optional when you run NPM.

Brad
  • 159,648
  • 54
  • 349
  • 530
  • Should I install popper.js as `npm i popper --save` or `npm i popper.js --save`? – Achal Kumar Rai Nov 13 '20 at 07:13
  • @AchalKumarRai I wouldn't know... I don't know if you're trying to install `popper`, or `popper.js`. They're two different packages, and you've mentioned both in your question. Install whichever one you want to use. – Brad Nov 13 '20 at 07:14
  • What's the difference between popper and popper.js? I thought they are the same. – Achal Kumar Rai Nov 13 '20 at 07:15