failed to run 'npm install' to install dependencies for the adapter on the Itential server
I would like to install the adapter to my IAP server. However, it failed with output below. I have set the proxy already. It worked on my PC, but not on that server. No idea where to look for the clue. Please help.
$ sudo npm install npm WARN lifecycle @itentialopensource/adapter-ansible_tower@2.0.2~preinstall: cannot run in wd %s %s (wd=%s) @itentialopensource/adapter-ansible_tower@2.0.2 node utils/setup.js /opt/pronghorn-workspace/adapter-ansible_tower npm ERR! code ECONNREFUSED npm ERR! errno ECONNREFUSED npm ERR! FetchError: request to http://127.0.0.1:5080/acorn failed, reason: connect ECONNREFUSED 127.0.0.1:5080 npm ERR! at ClientRequest.req.on.err (/usr/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/src/index.js:68:14) npm ERR! at emitOne (events.js:116:13) npm ERR! at ClientRequest.emit (events.js:211:7) npm ERR! at Socket.socketErrorListener (_http_client.js:387:9) npm ERR! at emitOne (events.js:116:13) npm ERR! at Socket.emit (events.js:211:7) npm ERR! at emitErrorNT (internal/streams/destroy.js:64:8) npm ERR! at _combinedTickCallback (internal/process/next_tick.js:138:11) npm ERR! at process._tickCallback (internal/process/next_tick.js:180:9) npm ERR! { FetchError: request to http://127.0.0.1:5080/acorn failed, reason: connect ECONNREFUSED 127.0.0.1:5080 npm ERR! at ClientRequest.req.on.err (/usr/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/src/index.js:68:14) npm ERR! at emitOne (events.js:116:13) npm ERR! at ClientRequest.emit (events.js:211:7) npm ERR! at Socket.socketErrorListener (_http_client.js:387:9) npm ERR! at emitOne (events.js:116:13) npm ERR! at Socket.emit (events.js:211:7) npm ERR! at emitErrorNT (internal/streams/destroy.js:64:8) npm ERR! at _combinedTickCallback (internal/process/next_tick.js:138:11) npm ERR! at process._tickCallback (internal/process/next_tick.js:180:9) npm ERR! message: 'request to http://127.0.0.1:5080/acorn failed, reason: connect ECONNREFUSED 127.0.0.1:5080', npm ERR! type: 'system', npm ERR! errno: 'ECONNREFUSED', npm ERR! code: 'ECONNREFUSED', npm ERR! stack: 'FetchError: request to http://127.0.0.1:5080/acorn failed, reason: connect ECONNREFUSED 127.0.0.1:5080\n at ClientRequest.req.on.err (/usr/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/src/index.js:68:14)\n at emitOne (events.js:116:13)\n at ClientRequest.emit (events.js:211:7)\n at Socket.socketErrorListener (_http_client.js:387:9)\n at emitOne (events.js:116:13)\n at Socket.emit (events.js:211:7)\n at emitErrorNT (internal/streams/destroy.js:64:8)\n at _combinedTickCallback (internal/process/next_tick.js:138:11)\n at process._tickCallback (internal/process/next_tick.js:180:9)', npm ERR! parent: '@itentialopensource/adapter-ansible_tower' } npm ERR! npm ERR! If you are behind a proxy, please make sure that the npm ERR! 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-05-04T10_42_37_791Z-debug.log