You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2022/07/18 02:33:57 UTC
[skywalking-nodejs] 01/01: Add missing build doc
This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch doc
in repository https://gitbox.apache.org/repos/asf/skywalking-nodejs.git
commit 09308f17131bee1d6523d96cbcbcf8eab2d38074
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Mon Jul 18 10:33:46 2022 +0800
Add missing build doc
---
CONTRIBUTING.md | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..46b6dd7
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,21 @@
+# Compiling and Building
+
+We use NodeJS 14 to build skywalking-nodejs project, if you don't have NodeJS 14 installed,
+you can choose a node version manager like [nvm](https://github.com/nvm-sh/nvm) to easily
+manage multiple node vesions, or you can start a Docker container and build this project inside
+the container.
+
+```shell
+# Suppose you have the source codes in folder skywalking-nodejs
+docker run -it --rm -v $(pwd)/skywalking-nodejs:/workspace -w /workspace node:14 bash
+```
+
+Then run the following commands to build the project:
+
+```shell
+npm install
+npm run build
+```
+
+Warnings can be ignored, but if you have any error that prevents you to continue, try
+`rm -rf node_modules/` and then rerun the commands above.