Faulty installation instructions

Open Beginner friendly
#33,645 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
76/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
documentation

Research direction

Open the Linux installation guide at https://www.zigbee2mqtt.io/guide/installation/01_linux.html#installing and find the Corepack command. Check it against the reported permission error, then update the installation instruction so users can create the symlink successfully. Done when the documented command addresses the permission error.

Written by the indexing model from the issue text.

Description

problem
What happened?

There's a sudo missing in front of corepack here: https://www.zigbee2mqtt.io/guide/installation/01_linux.html#installing

Internal Error: EACCES: permission denied, symlink '../share/nodejs/corepack/dist/pnpm.js' -> '/usr/bin/pnpm'
    at async Object.symlink (node:internal/fs/promises:997:10)
    at async EnableCommand.generatePosixLink (/usr/share/nodejs/corepack/dist/lib/corepack.cjs:42567:5)
    at async EnableCommand.execute (/usr/share/nodejs/corepack/dist/lib/corepack.cjs:42551:11)
    at async EnableCommand.validateAndExecute (/usr/share/nodejs/corepack/dist/lib/corepack.cjs:40234:22)
    at async _Cli.run (/usr/share/nodejs/corepack/dist/lib/corepack.cjs:41268:18)
    at async Object.runMain (/usr/share/nodejs/corepack/dist/lib/corepack.cjs:43237:12)
What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

n/a

Adapter firmware version

n/a

Adapter

n/a

Setup

This is a bug report for the docs

Device database.db entry

No response

Debug log

No response

Notes

No response

Dominant language
TypeScript
Stars
15.8k
Forks
2.1k
Avg merge
1d 6h
Merged PRs (30d)
38

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Koenkk/zigbee2mqtt

All issues in Koenkk/zigbee2mqtt

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.