curl -L http://git.io/n-install | bash
n
n ls
再ログイン
$ npm cache clean
$ npm cache ls
$ rm -rf ~/.npm
echo "deb http://mirrors.kernel.org/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y --allow-unauthenticated libpng12-0