'How can I make this button auto download this file that i have in the directory (node.js)

This is my html

<div class="btn-container d-flex justify-content-center">
                            <a href="FinalCV.pdf"><button class="button btn1" data-aos="fade-up" data-aos-delay="500">Download CV</button></a>
                        </div>

My file is in the main directory with the name "FinalCV.pdf". When i click the button i get a page that says "Cannot get /FinalCV.pdf" How do i fix it .



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source