Skip to content

[Nodejs][Bug] Getting error log "Error installing plugin mysql2 *" when start agent #7879

@chzhuo

Description

@chzhuo

Search before asking

  • I had searched in the issues and found no similar issues.

Apache SkyWalking Component

NodeJS Server Side Agent (apache/skywalking-nodejs)

What happened

Getting error log "Error installing plugin mysql2 *" when run start()

What you expected to happen

no error log

How to reproduce

I have only two files

package.json

{
  "name": "mynode",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "dependencies": {
    "mysql2": "^2.3.0",
    "skywalking-backend-js": "^0.3.0"
  }
}

index.js

const { default: agent } = require('skywalking-backend-js');

agent.start({
    serviceName: 'boblog',
    serviceInstance: 'boblog-1',
    collectorAddress: '10.0.5.198:12800',
});

nodejs version: v14.16.1
Then run command node index.js
image

Anything else

I traced the error and found throwing from this line
image

https://github.com/apache/skywalking-nodejs/blob/master/src/core/PluginInstaller.ts#L65

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working and you are sure it's a bug!nodejsNodeJS backend agent related

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions