The other fix I see is as below:
ensure you're installing the 4.5.11 or higher version of the agent (@latest will work)
install with npm install
edit the package-lock.json file to remove the lines and sections that show jre / proxy
"appdynamics-jre": "https://packages.appdynamics.com/nodejs/4.5.11.0/appdynamics-jre.tgz",
"appdynamics-proxy": "https://packages.appdynamics.com/nodejs/4.5.11.0/appdynamics-proxy.tgz",
"appdynamics-jre": { "version": "https://packages.appdynamics.com/nodejs/4.5.11.0/appdynamics-jre.tgz", "integrity": "sha512-hmnixIubwz8TBxQMe1/5QYwxmrCsnimYrZvNbvWZHOx2XifRnenzaPHw3avFCTvXgkTWt5lsY3UBIqlDYxTg3Q==" },
"appdynamics-proxy": { "version": "https://packages.appdynamics.com/nodejs/4.5.11.0/appdynamics-proxy.tgz", "integrity": "sha512-1E+UxBrR4Vo0FAG0z+66RYx3dGZfb55W+6G/lTnDxt3U0TZUzA/rKo9PaQNDLKwogcgkraZYgBFYlVsvtvQy4w==" },
... View more