elm-lang/elm-platform

npm install fails on Ubuntu 16.04

ankush981 opened this issue · 1 comments

I already have Elm 0.17 installed but when trying to upgrade to 0.18 I get the following error:

~# npm install -g elm
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
/usr/local/nvm/versions/node/v8.11.1/bin/elm -> /usr/local/nvm/versions/node/v8.11.1/lib/node_modules/elm/binwrappers/elm
/usr/local/nvm/versions/node/v8.11.1/bin/elm-make -> /usr/local/nvm/versions/node/v8.11.1/lib/node_modules/elm/binwrappers/elm-make
/usr/local/nvm/versions/node/v8.11.1/bin/elm-package -> /usr/local/nvm/versions/node/v8.11.1/lib/node_modules/elm/binwrappers/elm-package
/usr/local/nvm/versions/node/v8.11.1/bin/elm-reactor -> /usr/local/nvm/versions/node/v8.11.1/lib/node_modules/elm/binwrappers/elm-reactor
/usr/local/nvm/versions/node/v8.11.1/bin/elm-repl -> /usr/local/nvm/versions/node/v8.11.1/lib/node_modules/elm/binwrappers/elm-repl

> elm@0.18.0 install /usr/local/nvm/versions/node/v8.11.1/lib/node_modules/elm
> node install.js

Error extracting linux-x64.tar.gz - Error: EACCES: permission denied, mkdir '/usr/local/nvm/versions/node/v8.11.1/lib/node_modules/elm/Elm-Platform'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! elm@0.18.0 install: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the elm@0.18.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-06-26T18_23_43_860Z-debug.log

I've checked the directory in question and the permissions seem to be okay. Any advice?

Resolved by doing yarn global install elm. F*** you, npm!