Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭 适合新手
#2,350 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
66/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
领域
build-system

调研方向

从 make 运行的 Makefile target 入手,找到 npm install --deps 命令。检查项目所用 npm 版本支持的安装选项,并更新该命令,使依赖项安装顺利完成。当 make 越过依赖项安装并继续构建应用时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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
主要语言
JavaScript
星标
71
派生
30
平均合并
11 小时
30 天内合并 PR
87

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/logreader 的其他 Issue

查看 nextcloud/logreader 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。