Solution 1 :

your script tag should look like this:

<script src="./node_modules/bootstrap-input-spinner/src/bootstrap-input-spinner.js"></script>

Problem :

  1. In my project I want to include a (input-spinner ) in my HTML file.
  2. I run the npm install bootstrap-input-spinner command.
  3. A node module folder and package lock.json was created along with my HTML file
  4. In HTML, I created a link for that plugin but this is not working.

My HTML body code:

    <div class="container">
        <h1> Calculator</h1>

        <div class="card">
            <div class="card-body">
                <input type="number" value="0" min="0" max="100" step="1"/>

      <script src="/node_modules/bootstrap-input-spinner.js"></script>

I also include bootstrap cdn in my project