Elm-format: Error: EACCES: permission denied, mkdir

Created on 12 Jan 2020  路  2Comments  路  Source: avh4/elm-format

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! [email protected] 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

Most helpful comment

solved by adding --unsafe-perm to npm command

All 2 comments

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

solved by adding --unsafe-perm to npm command

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rtfeldman picture rtfeldman  路  4Comments

ahstro picture ahstro  路  3Comments

avh4 picture avh4  路  6Comments

avh4 picture avh4  路  7Comments

rtfeldman picture rtfeldman  路  7Comments