mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-07 00:02:14 +08:00
NodeJS v16.x下安装nodegit
This commit is contained in:
parent
0c3f52f1d6
commit
5c542ed484
3
.gitignore
vendored
3
.gitignore
vendored
@ -8,4 +8,5 @@ mew/
|
||||
node_modules
|
||||
test/mini-ci
|
||||
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
|
||||
const path = require("path");
|
||||
const fs = require("fs");
|
||||
const { spawn } = require("child_process");
|
||||
|
||||
console.info("Patching CLI command");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user