To do this, we can install the JavaScript package manager on our system npm (https://www.npmjs.com/). The npm package manager is installed via Node.js. On macOS, the brew install node command does the trick, or you can go to the Node.js home page (https://nodejs.org/en/), and download it to the system.
Once Node.js and npm are installed, you should be able to call the npm ;command from the shell as follows:
$ npm -v 3.5.2
To manage JavaScript dependencies in our Flask project, we will use Bower (https://bower.io/), a package manager for web applications, which leverages npm to package all JS dependencies required for a web app--like PIP does for Python packages.
To install Bower, use the npm command like this: ...