avh4 / avh4/elm-format

Installation problem

Open
#554 6 comments 14 reactions 0 assignees View on GitHub
help wanted packaging
Dominant language
Haskell
Stars
1.3k
Forks
147
PR merge metrics
No merged PRs in 30d

Description

```
sudo bash
npm install -g elm-format
```
generates the following error:
`ERR Error extracting https://github.com/avh4/elm-format/releases/download/0.8.0/elm-format-0.19-0.8.0-mac-x64.tgz - Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/elm-format/unpacked_bin'
`
with --unsafe-perm it works.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the installation with `sudo bash` followed by `npm install -g elm-format`, then compare it with the working `--unsafe-perm` invocation. Trace extraction of the mentioned macOS release archive and verify that installation succeeds without the workaround while preserving the reported global install location.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.