mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
NodeJS v16.x下安装nodegit
This commit is contained in:
parent
0c3f52f1d6
commit
5c542ed484
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@ node_modules
|
|||||||
test/mini-ci
|
test/mini-ci
|
||||||
crash-server
|
crash-server
|
||||||
build
|
build
|
||||||
|
*.snap
|
27
docs/Nodegit.MD
Normal file
27
docs/Nodegit.MD
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
NodeJS v16.x下安装nodegit
|
||||||
|
1. `apt-get install -y python2 python3 libkrb5-dev gcc openssl libssh2-1-dev g++ make`
|
||||||
|
2. `npm install nodegit`
|
||||||
|
|
||||||
|
## docker-compose.yaml
|
||||||
|
```yaml
|
||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
wechat_devtools:
|
||||||
|
image: node:16.13.1-slim
|
||||||
|
volumes:
|
||||||
|
- .:/workspace
|
||||||
|
entrypoint: /workspace/docker/entrypoint
|
||||||
|
```
|
||||||
|
|
||||||
|
## entrypoint
|
||||||
|
```bash
|
||||||
|
#!/bin/bash
|
||||||
|
cd /workspace
|
||||||
|
apt update
|
||||||
|
apt-get install -y python2 python3 libkrb5-dev gcc openssl libssh2-1-dev g++ make
|
||||||
|
|
||||||
|
echo "start"
|
||||||
|
npm install nodegit --registry=https://registry.npm.taobao.org
|
||||||
|
|
||||||
|
npm uninstall nodegit
|
||||||
|
```
|
@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const { spawn } = require("child_process");
|
|
||||||
|
|
||||||
console.info("Patching CLI command");
|
console.info("Patching CLI command");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user