Makefile stops with NPM: Unknown cli flag: --deps

Aberta Para iniciantes
#2,350 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
1/5
Tempo estimado
Menos de uma hora
Facilidade para iniciantes
66/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
javascript, node.js
Domínio
build-system

Direção de pesquisa

Comece pelo target do Makefile executado por make e encontre o comando npm install --deps. Verifique as opções de instalação compatíveis com a versão do npm do projeto e atualize o comando para que a instalação das dependências seja concluída. O trabalho estará concluído quando make passar pela instalação das dependências e continuar a compilação do app.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

0. Needs triage bug
How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce
  1. Pull this app from GitHub ( I am using Branch Stable35)
  2. Run make

NPM Version: 12.2.1

Expected behaviour

It should pull the dependencies using NPM and then build the app

Actual behaviour

It fails with the following error:

npm install --deps
npm error code EUNKNOWNCONFIG
npm error Unknown cli flag:
npm error   - --deps
npm error Run `npm help config` for supported options.
Server configuration

Not relevant because it's a build-time issue.

List of activated apps
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
Nextcloud configuration
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
Browser

Browser name: Firefox/Chrome/Safari/…

Browser version: 124/125/…

Operating system: Windows/Ubuntu/Mac/…

NPM Log
0 verbose cli /usr/bin/node /usr/bin/npm
1 info using [email protected]
2 info using [email protected]
3 silly config load:file:/usr/lib/node_modules/npm/npmrc
4 silly config load:file:/home/laurenz/Checkouts/docker-nextcloud-dev/apps2/logreader/.npmrc
5 silly config load:file:/home/laurenz/.npmrc
6 silly config load:file:/etc/npmrc
7 verbose title npm install
8 verbose argv "install" "--deps"
9 verbose logfile logs-max:10 dir:/home/laurenz/.npm/_logs/2026-10-24T11_06_13_018Z-
10 verbose logfile /home/laurenz/.npm/_logs/2026-10-24T11_06_13_018Z-debug-0.log
11 silly logfile start cleaning logs, removing 2 files
12 silly logfile done cleaning log files
13 verbose stack Error: Unknown cli flag:
13 verbose stack   - --deps
13 verbose stack Run `npm help config` for supported options.
13 verbose stack     at Install.validateCli (/usr/lib/node_modules/npm/lib/base-cmd.js:427:29)
13 verbose stack     at Npm.execCommandClass (/usr/lib/node_modules/npm/lib/npm.js:309:25)
13 verbose stack     at async Npm.exec (/usr/lib/node_modules/npm/lib/npm.js:194:9)
13 verbose stack     at async module.exports (/usr/lib/node_modules/npm/lib/cli/entry.js:67:5)
14 error code EUNKNOWNCONFIG
15 error Unknown cli flag:
15 error   - --deps
15 error Run `npm help config` for supported options.
16 verbose cwd /home/laurenz/Checkouts/docker-nextcloud-dev/apps2/logreader
17 verbose os Linux 7.2.11-3-MANJARO
18 verbose node v24.22.0
19 verbose npm  v12.2.1
20 verbose exit 1
21 verbose code 1
22 error A complete log of this run can be found in: /home/laurenz/.npm/_logs/2026-10-24T11_06_13_018Z-debug-0.log
Linguagem predominante
JavaScript
Estrelas
71
Forks
30
Merge médio
8h 6min
PRs com merge (30d)
110

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de nextcloud/logreader

Todas as issues de nextcloud/logreader

Issues semelhantes

Mais issues de JavaScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.