<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Conda on Huy Minh Ha</title><link>https://minhhh.github.io/tags/conda/</link><description>Recent content in Conda on Huy Minh Ha</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Fri, 09 Aug 2019 00:00:00 +0700</lastBuildDate><atom:link href="https://minhhh.github.io/tags/conda/index.xml" rel="self" type="application/rss+xml"/><item><title>Setup nodejs development environment with conda and nodeenv</title><link>https://minhhh.github.io/posts/nodejs-with-conda-and-nodeenv/</link><pubDate>Fri, 09 Aug 2019 00:00:00 +0700</pubDate><guid>https://minhhh.github.io/posts/nodejs-with-conda-and-nodeenv/</guid><description>&lt;p&gt;When you want to develop your nodejs project on different node versions, you have some tools to help you install multiple node versions such as &lt;code&gt;nave&lt;/code&gt;, &lt;code&gt;nvm&lt;/code&gt;, &lt;code&gt;n&lt;/code&gt;. However, this is still not as nice as &lt;code&gt;virtualenv&lt;/code&gt; in Python, where you have completely isolated environments so one project does not affect the others.&lt;/p&gt;
&lt;p&gt;Fortunately, there is a tool called &lt;a class="link" href="https://github.com/ekalinin/nodeenv" target="_blank" rel="noopener"
 &gt;nodeenv&lt;/a&gt; that can help you create isolated node.js environment the same way as &lt;code&gt;virtualenv&lt;/code&gt;. Using &lt;code&gt;nodeenv&lt;/code&gt; is already good enough, but if you don&amp;rsquo;t want to store the virtualenv folder in the same project folder, then you would need some other tool to manage virtualenv folders globally. There are 2 options: &lt;code&gt;conda&lt;/code&gt; and &lt;code&gt;pipenv&lt;/code&gt;. &lt;code&gt;pipenv&lt;/code&gt; does not integrate very well with shell scripts because you have to start a separate pipenv shell. &lt;code&gt;conda&lt;/code&gt; is perfect because it can manage all kinds of packages, not just Python or nodejs and it&amp;rsquo;s very compatible with shell scripts.&lt;/p&gt;
&lt;p&gt;In conclusion, using &lt;code&gt;conda&lt;/code&gt; and &lt;code&gt;nodeenv&lt;/code&gt; is a much better choice than just &lt;code&gt;nave&lt;/code&gt; or &lt;code&gt;nvm&lt;/code&gt;.&lt;/p&gt;</description></item></channel></rss>