Zsh and NPM Setup on Ubuntu

Automate settings with Oh My Zsh

Problem

After installing NPM throught Ubuntu’s default apt-get manager, I got permission errors. Though sudo can solve the problem, that’s not the right way in principle because NPM is supposed to hold different versions of Node.js packages for testing. It’s insecure to execute npm with sudo priviledges.

Solutions

  1. Install Zsh to improve efficiency

  2. Grab Oh My Zsh to instal NVM as its plugin.

     sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    
  3. Use NVM (NPM Version Manager) to manage NPM.

    [Read More]
Zsh  NPM