You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--node=system won't work if there's already a compiled node on the virtualenv #43
This may not be a bug per-se, but I've found this: on a virtualenv, if you first run nodeenv -p, it will download, compile and install a copy of node on ~/.virtualenvs/myproject/bin. So far, so good.
But later, if you decide to use the system-wide node install, running nodeenv -p --node=system won't help you (nor running nodeenv--node=system, without the -p option).
The standard output will tell you that some changes are applied to ~/.virtualenvs/myproject/bin/activate and it may even install npm, but the compiled node will be still there in ~/.virtualenvs/myproject/bin/, and a which node will tell you that that's the node that will be used.
In other words, the --node=system didn't take any effect, and one could say that it "failed silently".
BTW, as a side-effect of running nodeenv -p a few times, I noticed that the same lines are n-plicated inside ~/.virtualenvs/myproject/bin/activate. I don't know if there is a "cure" for that, but just letting you know. I manually cleaned the n-plicated lines.
Activity
maniqui commentedon Oct 9, 2013
BTW, I forgot to comment the workaround for re-configuring nodeenv to use the system-wide
nodeis:nodefile from~/.virtualenvs/myproject/bin/. This is the one that was downloaded, compiled & installed by nodeenv.nodeenv -p --node=systemYou can confirm which node is being used in the current virtualenv by running `which node'
neverfox commentedon May 18, 2014
I tried this workaround in 0.7.2, and still get the following error from
nodeenv -p --node=systemekalinin commentedon May 19, 2014
Hi @neverfox !
Here's my try:
I don't see any errors. Can you provide more details?
neverfox commentedon May 25, 2014
@ekalinin I'm using virtualenvwrapper. Here's what I get:
ekalinin commentedon May 27, 2014
Now i see an error.
It related only for python 3.4.
Thanks for reporting!