【ELM】Ubuntu 16.04 LTS へのインストール
普通にインストールしようとしたらエラーになった。
sudo npm install elm
Error extracting linux-x64.tar.gz - Error: EACCES: permission denied, mkdir '/usr/local/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.
で、ググったところ、下記の記事を発見。
sudo npm i -g elm --unsafe-perm=true --allow-root
で、無事にインストールできた。