Error installing on manjaro
- Dominant language
- Haskell
- Stars
- 1.3k
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description
I've tried to install this on manjaro with the cmd npm install -g elm-format
```
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
/usr/bin/elm-format -> /usr/lib/node_modules/elm-format/bin/elm-format
> elm-format@0.6.1-alpha install /usr/lib/node_modules/elm-format
> binwrap-install
fs.js:663
return binding.open(pathModule.toNamespacedPath(path),
^
Error: EACCES: permission denied, open 'bin/elm-format'
at Object.fs.openSync (fs.js:663:18)
at Object.fs.writeFileSync (fs.js:1314:33)
at /usr/lib/node_modules/elm-format/node_modules/binwrap/install.js:17:8
at Array.forEach ()
at install (/usr/lib/node_modules/elm-format/node_modules/binwrap/install.js:15:19)
at Object.install (/usr/lib/node_modules/elm-format/node_modules/binwrap/index.js:8:14)
at Object. (/usr/lib/node_modules/elm-format/node_modules/binwrap/bin/binwrap-install:16:9)
at Module._compile (module.js:641:30)
at Object.Module._extensions..js (module.js:652:10)
at Module.load (module.js:560:32)
at tryModuleLoad (module.js:503:12)
at Function.Module._load (module.js:495:3)
at Function.Module.runMain (module.js:682:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:613:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! elm-format@0.6.1-alpha install: `binwrap-install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the elm-format@0.6.1-alpha install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing `npm install -g elm-format` on Manjaro and read the reported `node_modules/binwrap/install.js` path in the stack trace. Investigate why the install script cannot open `bin/elm-format`; done means the package installs successfully without the reported EACCES failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100