margauxcabrera edited a comment on issue #6221:
URL: https://github.com/apache/skywalking/issues/6221#issuecomment-762480756
Hi,
Here are the steps I took:
1. Initialise a new project: npm init -y
2. Install skywalking-client-js: npm install skywalking-client-js --save-dev
3. Create index.js and add the following code:
```
import ClientMonitor from 'skywalking-client-js';
ClientMonitor.register({
collector: 'http://127.0.0.1:8080',
service: 'local',
pagePath: '/',
serviceVersion: 'v1.0.0',
});
```
4. Run node index
Here are my node and npm versions in case you need them:
skywalking-client % node --version
v15.6.0
skywalking-client % npm --version
7.4.0
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]