avh4 / elm-format

elm-format formats Elm source code according to a standard set of rules based on the official Elm Style Guide
BSD 3-Clause "New" or "Revised" License
1.31k stars 148 forks source link

Error: EACCES: permission denied, mkdir #659

Open sly442 opened 4 years ago

sly442 commented 4 years ago

Can not install Elm-format on MacOs High Sierra.

this is a section of the message: errno: -13, syscall: 'mkdir', code: 'EACCES', path: '/usr/local/lib/node_modules/elm-format/unpacked_bin' } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! elm-format@0.8.2 install: binwrap-install npm ERR! Exit status 1 npm ERR! 2020-01-12T02_49_19_250Z-debug.log 2020-01-12T02_29_05_475Z-debug.log

shepelevstas commented 4 years ago

same here, even with sudo npm i -g elm-format

shepelevstas commented 4 years ago

solved by adding --unsafe-perm to npm command

ghost commented 3 years ago

Explanation 👆👆👆 https://geedew.com/What-does-unsafe-perm-in-npm-actually-do/