1, download the open source plug-address: https: //github.com/mobz/elasticsearch-head
2. spread linux directory, I usually spread to / usr / local / node / below
3, extract the directory, into elasticsearch-head-master directory, performed npm install
4, no instruction, then go online queries install node.js
5, during the execution of npm install, it may appear phantomjs related errors episode, online information can be found, here is my question
When downloading phantomjs-2.1.1-linux-x86_64.tar.bz2, to be unpacked, no command, so: To perform -y yum install bzip2 download the unzip command
6, re-run npm install, may have the following error:
Phantom installation failed [Error: EACCES: permission denied, link '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1579503508234/phantomjs-2.1.1-linux-x86_64' -> '/usr/local/node-head/elasticsearch-head-master/node_modules/phantomjs-prebuilt/lib/phantom'] {
errno: -13,
code: 'EACCES',
syscall: 'link',
path: '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1579503508234/phantomjs-2.1.1-linux-x86_64',
dest: '/usr/local/node-head/elasticsearch-head-master/node_modules/phantomjs-prebuilt/lib/phantom'
} Error: EACCES: permission denied, link '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1579503508234/phantomjs-2.1.1-linux-x86_64' -> '/usr/local/node-head/elasticsearch-head-master/node_modules/phantomjs-prebuilt/lib/phantom'
Here is the list from the Internet to:
To add the install later NPM the --unsafe-Perm,
即:npm install --unsafe-perm:
The results show that:
Running "connect:server" (connect) task
Waiting forever...
Started connect web server on http://localhost:9100
Happy you're done, the Spring Festival, little friends!