dsh plugin add Fails with EACCES / Permission Denied
Permission errors during install are usually caused by a global npm directory, a read-only profile, or a package manager running as another user.
Symptoms
If you searched for this error, the problem usually shows up at install time or on the first message after install. Work through the steps below in order — they are ordered from cheapest to most disruptive.
Step-by-step
- Check where the plugin is being installed: a per-profile plugin should not need sudo.
- If npm is configured with a root-owned global prefix, switch to a user-level prefix.
- Make sure the profile directory is writable by your user.
- On macOS, avoid running the client and install command as different users.
- Retry the same install command from the plugin page after fixing permissions.
Related
Browse the DSH plugin directory or more troubleshooting guides in the tutorials section. If a specific plugin is involved, open its detail page and check the last-push date and license before reinstalling.