chzhuo opened a new issue #7879:
URL: https://github.com/apache/skywalking/issues/7879


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) 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
   ```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
   ```js
   const { default: agent } = require('skywalking-backend-js');
   
   agent.start({
       serviceName: 'boblog',
       serviceInstance: 'boblog-1',
       collectorAddress: '10.0.5.198:12800',
   });
   
   ```
   
   Then run command `node index.js`
   nodejs version: v14.16.1
   
   
   ### Anything else
   
   I traced the error and found throwing from this line
   
![image](https://user-images.githubusercontent.com/10919124/136641790-674b8435-3517-41f4-a822-1be25acc065b.png)
   
   
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
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to