@followthecode/cli 1.1.13 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
Binary file
|
package/bin/osx-x64/ftc.cli.dll
CHANGED
|
Binary file
|
package/bin/win-x64/ftc.cli.dll
CHANGED
|
Binary file
|
package/bin/win-x64/ftc.cli.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@followthecode/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.15",
|
|
4
4
|
"description": "CLI tool for Git repository analysis and data collection",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
"bin/linux-x64/ftc.cli.runtimeconfig.json",
|
|
88
88
|
"bin/linux-x64/appsettings.json",
|
|
89
89
|
"bin/linux-x64/*.dll",
|
|
90
|
+
"bin/linux-x64/*.so",
|
|
90
91
|
"scripts/set-permissions.js",
|
|
91
92
|
"scripts/fix-permissions.js",
|
|
92
93
|
"scripts/install-wrapper.js",
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
# 🔧 Troubleshooting - Problemas com Node.js no Linux
|
|
2
|
-
|
|
3
|
-
## ❌ Erro: `node: not found`
|
|
4
|
-
|
|
5
|
-
Se você está recebendo o erro `node: not found` após instalar o FTC CLI no Linux, isso significa que o Node.js não está instalado ou não está no PATH do sistema.
|
|
6
|
-
|
|
7
|
-
## 🔍 Diagnóstico
|
|
8
|
-
|
|
9
|
-
### 1. Verificar se o Node.js está instalado:
|
|
10
|
-
```bash
|
|
11
|
-
node --version
|
|
12
|
-
npm --version
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
### 2. Se o Node.js não estiver instalado:
|
|
16
|
-
|
|
17
|
-
#### Opção A: Instalar via NodeSource (Recomendado)
|
|
18
|
-
```bash
|
|
19
|
-
# Para Ubuntu/Debian
|
|
20
|
-
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
|
|
21
|
-
sudo apt-get install -y nodejs
|
|
22
|
-
|
|
23
|
-
# Para CentOS/RHEL/Fedora
|
|
24
|
-
curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -
|
|
25
|
-
sudo yum install -y nodejs
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
#### Opção B: Instalar via Snap
|
|
29
|
-
```bash
|
|
30
|
-
sudo snap install node --classic
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
#### Opção C: Instalar via NVM (Node Version Manager)
|
|
34
|
-
```bash
|
|
35
|
-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
|
|
36
|
-
source ~/.bashrc
|
|
37
|
-
nvm install --lts
|
|
38
|
-
nvm use --lts
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### 3. Verificar o PATH:
|
|
42
|
-
```bash
|
|
43
|
-
echo $PATH
|
|
44
|
-
which node
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## 🛠️ Soluções Alternativas
|
|
48
|
-
|
|
49
|
-
### Solução 1: Usar o Wrapper Shell (Recomendado para Linux sem Node.js)
|
|
50
|
-
|
|
51
|
-
O FTC CLI agora inclui um wrapper shell script que não depende do Node.js:
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
# Execute diretamente o wrapper shell
|
|
55
|
-
ftc --help
|
|
56
|
-
|
|
57
|
-
# Ou use o comando alternativo
|
|
58
|
-
ftc-linux --help
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Solução 2: Instalar Node.js apenas para o usuário atual
|
|
62
|
-
|
|
63
|
-
Se você não tem permissões de administrador:
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
# Baixar e instalar Node.js localmente
|
|
67
|
-
mkdir ~/.nodejs
|
|
68
|
-
cd ~/.nodejs
|
|
69
|
-
wget https://nodejs.org/dist/v18.17.0/node-v18.17.0-linux-x64.tar.xz
|
|
70
|
-
tar -xf node-v18.17.0-linux-x64.tar.xz
|
|
71
|
-
echo 'export PATH="$HOME/.nodejs/node-v18.17.0-linux-x64/bin:$PATH"' >> ~/.bashrc
|
|
72
|
-
source ~/.bashrc
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Solução 3: Usar o binário .NET diretamente
|
|
76
|
-
|
|
77
|
-
Se nenhuma das opções acima funcionar, você pode executar o binário .NET diretamente:
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
# Navegar para o diretório de instalação
|
|
81
|
-
cd /usr/local/lib/node_modules/@followthecode/cli/bin/linux-x64
|
|
82
|
-
|
|
83
|
-
# Executar diretamente
|
|
84
|
-
./ftc.cli --help
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
## 🔧 Configuração Automática
|
|
88
|
-
|
|
89
|
-
O FTC CLI agora detecta automaticamente qual wrapper usar:
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
# Reinstalar o pacote para executar a configuração automática
|
|
93
|
-
npm uninstall -g @followthecode/cli
|
|
94
|
-
npm install -g @followthecode/cli
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
## 📋 Verificação
|
|
98
|
-
|
|
99
|
-
Após a instalação, verifique se está funcionando:
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
# Verificar se o comando está disponível
|
|
103
|
-
which ftc
|
|
104
|
-
|
|
105
|
-
# Testar o comando
|
|
106
|
-
ftc --help
|
|
107
|
-
|
|
108
|
-
# Verificar a versão
|
|
109
|
-
ftc --version
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
## 🆘 Ainda com Problemas?
|
|
113
|
-
|
|
114
|
-
Se você ainda está enfrentando problemas:
|
|
115
|
-
|
|
116
|
-
1. **Verifique as permissões**:
|
|
117
|
-
```bash
|
|
118
|
-
ls -la $(which ftc)
|
|
119
|
-
chmod +x $(which ftc)
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
2. **Reinstale o pacote**:
|
|
123
|
-
```bash
|
|
124
|
-
npm uninstall -g @followthecode/cli
|
|
125
|
-
npm cache clean --force
|
|
126
|
-
npm install -g @followthecode/cli
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
3. **Execute o script de configuração manualmente**:
|
|
130
|
-
```bash
|
|
131
|
-
cd /usr/local/lib/node_modules/@followthecode/cli
|
|
132
|
-
node scripts/install-wrapper.js
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
## 📞 Suporte
|
|
136
|
-
|
|
137
|
-
Se nenhuma das soluções acima funcionar, abra uma issue no repositório do projeto com:
|
|
138
|
-
|
|
139
|
-
- Sistema operacional e versão
|
|
140
|
-
- Saída do comando `node --version`
|
|
141
|
-
- Saída do comando `npm --version`
|
|
142
|
-
- Mensagem de erro completa
|
|
143
|
-
- Conteúdo do arquivo `/etc/environment` (se aplicável)
|