Installation failed - opencollective-postinstall: Permission denied
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Bug
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- javascript, node.js
- Bereich
- cli
Rechercherichtung
Reproduziere die gemeldete Installation von npm i -g docsify-cli mit Node v14.15.1 und untersuche den Postinstall-Schritt von [email protected], der opencollective-postinstall aufruft. Die Logs zeigen einen Fehler wegen verweigerter Berechtigung, gefolgt von spawn ENOENT; abgeschlossen ist die Aufgabe, wenn sich die CLI ohne diesen Postinstall-Fehler erfolgreich installieren lässt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Command and Log:
$ npm i -g docsify-cli
/root/.nvm/versions/node/v14.15.1/bin/docsify -> /root/.nvm/versions/node/v14.15.1/lib/node_modules/docsify-cli/bin/docsify
> [email protected] postinstall /root/.nvm/versions/node/v14.15.1/lib/node_modules/docsify-cli/node_modules/docsify
> opencollective-postinstall
sh: 1: opencollective-postinstall: Permission denied
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/docsify-cli/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! [email protected] postinstall: `opencollective-postinstall`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-03-27T09_10_53_098Z-debug.log
At the docsify's post-install phase in debug.log:
5745 silly postinstall [email protected]
5746 info lifecycle [email protected]~postinstall: [email protected]
5747 verbose lifecycle [email protected]~postinstall: unsafe-perm in lifecycle false
5748 verbose lifecycle [email protected]~postinstall: PATH: /root/.nvm/versions/node/v14.15.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/.nvm/versions/node/v14.15.1/lib/node_modules/docsify-cli/node_modules/docsify/node_modules/.bin:/root/.nvm/versions/node/v14.15.1/lib/node_modules/docsify-cli/node_modules/.bin:/root/.nvm/versions/node/v14.15.1/lib/node_modules/.bin:/root/bin:/root/.vscode-server/bin/2b9aebd5354a3629c3aba0a5f5df49f43d6689f8/bin:/root/bin:/root/.nvm/versions/node/v14.15.1/bin:/root/.vscode-server/bin/2b9aebd5354a3629c3aba0a5f5df49f43d6689f8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
5749 verbose lifecycle [email protected]~postinstall: CWD: /root/.nvm/versions/node/v14.15.1/lib/node_modules/docsify-cli/node_modules/docsify
5750 silly lifecycle [email protected]~postinstall: Args: [ '-c', 'opencollective-postinstall' ]
5751 info lifecycle [email protected]~postinstall: Failed to exec postinstall script
5752 timing action:postinstall Completed in 149ms
5753 verbose unlock done using /root/.npm/_locks/staging-5069969764c9560c.lock for /root/.nvm/versions/node/v14.15.1/lib/node_modules/.staging
5754 timing stage:rollbackFailedOptional Completed in 379ms
5755 timing stage:runTopLevelLifecycles Completed in 8086ms
5756 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/docsify-cli/node_modules/chokidar/node_modules/fsevents):
5757 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
5758 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
5758 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
5758 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux
5758 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
5759 verbose stack Error: [email protected] postinstall: `opencollective-postinstall`
5759 verbose stack spawn ENOENT
5759 verbose stack at ChildProcess.<anonymous> (/root/.nvm/versions/node/v14.15.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
5759 verbose stack at ChildProcess.emit (events.js:315:20)
5759 verbose stack at maybeClose (internal/child_process.js:1048:16)
5759 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
5760 verbose pkgid [email protected]
5761 verbose cwd /root/Works/fst-logic-centre
5762 verbose Linux 4.15.0-91-generic
5763 verbose argv "/root/.nvm/versions/node/v14.15.1/bin/node" "/root/.nvm/versions/node/v14.15.1/bin/npm" "i" "-g" "docsify-cli"
5764 verbose node v14.15.1
5765 verbose npm v6.14.8
5766 error code ELIFECYCLE
5767 error syscall spawn
5768 error file sh
5769 error errno ENOENT
5770 error [email protected] postinstall: `opencollective-postinstall`
5770 error spawn ENOENT
5771 error Failed at the [email protected] postinstall script.
5771 error This is probably not a problem with npm. There is likely additional logging output above.
5772 verbose exit [ 1, true ]
- Vorherrschende Sprache
- JavaScript
- Sterne
- 780
- Forks
- 167
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus docsifyjs/docsify-cli
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
docsifyjs/docsify-cli#253 ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
docsifyjs/docsify-cli#229 · 1 Kommentar ·
-
enhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
docsifyjs/docsify-cli#193 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 55/100
docsifyjs/docsify-cli#191 · 2 Kommentare ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
docsifyjs/docsify-cli#188 ·
Alle Issues in docsifyjs/docsify-cli
Ähnliche Issues
-
ew
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag
-
priority: medium status: needs-decision work-class: scoped
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
melodic-software/claude-code-plugins#9339 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug-report bug-report-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Codeinwp/templates-patterns-collection#539 ·
Maintainer antworten meist innerhalb von 1 Tag
-
建议增加URL参数构建的工具Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
[Bug] dsh 0.2.1 返回 session/not-found 时 sessionExists 不重建会话,消息恒失败并被误报为 INTERNAL_UNKNOWNEvtl. vergeben @ANIIAN91 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
xmanrui/dsh-im#444 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag