install phantomjs / any package globally specific version
<p>I want to globally install phantomjs version 1.9.8 globally.</p>

<p>When I ran phantomjs --version it showed me 2.1.1</p>

<p>So I ran <code>npm uninstall phantomjs -g</code> which was successfull.</p>

<p>Next when I try to run <code>npm install phantomjs -g 1.9.8</code> it is throwing me the below error</p>

<pre><code>&gt; npm WARN deprecated phantomjs@2.1.7: Package renamed to
&gt; phantomjs-prebuilt. Please update 'phantomjs' package references to
&gt; 'phantomjs-prebuilt' npm ERR! Darwin 14.5.0 npm ERR! argv
&gt; "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "phantomjs"
&gt; "1.9.20" npm ERR! node v4.4.7 npm ERR! npm  v2.15.8 npm ERR! code E404
&gt; 
&gt; npm ERR! 404 Registry returned 404 for GET on
&gt; https://registry.npmjs.org/1.9.20 npm ERR! 404  npm ERR! 404 '1.9.20'
&gt; is not in the npm registry. npm ERR! 404 You should bug the author to
&gt; publish it (or use the name yourself!) npm ERR! 404  npm ERR! 404 Note
&gt; that you can also install from a npm ERR! 404 tarball, folder, http
&gt; url, or git url.
&gt; 
&gt; npm ERR! Please include the following file with any support request:
&gt; npm ERR!     /work/development/test-folder/npm-debug.log
</code></pre>

<p>How could I install a required version of pantomjs globally.</p>

<p>PS : I am not using homebrew and would like to avoid using homebrew</p>