npm install elasticsearch code example
Example 1: elasticsearch npm
npm install @elastic/elasticsearch
Example 2: install elasticsearch
sudo apt-get update
sudo apt-get -y install elasticsearch
sudo systemctl start elasticsearch
sudo systemctl enable elasticsearch