Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Installation failed - opencollective-postinstall: Permission denied

Offen
#140 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

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

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus docsifyjs/docsify-cli

Alle Issues in docsifyjs/docsify-cli

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.