-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
apache/skywalking-nodejs
#74Labels
bugSomething isn't working and you are sure it's a bug!Something isn't working and you are sure it's a bug!nodejsNodeJS backend agent relatedNodeJS backend agent related
Milestone
Description
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

Anything else
I traced the error and found throwing from this line

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
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't working and you are sure it's a bug!Something isn't working and you are sure it's a bug!nodejsNodeJS backend agent relatedNodeJS backend agent related