title: How to solve polymer command not found error
body: <p>Recently, I started to learn <code>polymer</code> framework but when I install to <code>polymer-cli</code> and then start polymer serve everything works great, next day, when I open the project and write <code>polymer serve</code>, terminal says <code>polymer command not found</code>.</p>
  
  <p>I searched online and find that npm default directory error and follow steps to manually set it up again. Here is the steps, I have to write every morning; </p>
  
  <p><strong>Make a directory for global installations:</strong></p>
  
  <pre><code>mkdir ~/.npm-global
  </code></pre>
  
  <p><strong>Configure npm to use the new directory path:</strong></p>
  
  <pre><code>npm config set prefix '~/.npm-global'
  </code></pre>
  
  <p><strong>Open or create a ~/.profile file and add this line:</strong></p>
  
  <pre><code>export PATH=~/.npm-global/bin:$PATH
  </code></pre>
  
  <p><strong>Back on the command line, update your system variables:</strong></p>
  
  <pre><code>source ~/.profile
  Test: Download a package globally without using sudo.
  
  npm install -g jshint
  
  npm install polymer-cli 
  polymer serve
  </code></pre>
  
  <p>Then I am good to go. I am able to work on polymer again, but next day, I have to go through each steps otherwise it is not working. Do I have to write these commands everyday? Are there any absolute solution for this problem? </p>