opened
mark-tan
username_0
I am able to get `node` into the virtualenv, but not `npm`.
`which node` will give me `/path/to/virtualenv/bin/node`, but `which npm` still gives me `/usr/bin/npm`.
Installing node packages with `-g` does not install into the virtualenv.
`nodeenv -p --node=system` does not install npm from system
issue
created
ekalinin
username_1
Hey @username_0 

What OS are you using? 
What version of the nodeenv did you use?

Here's my try:
```
➥ cd /tmp/ && virtualenv nodetest
➥ . nodetest/bin/activate
(nodetest) ➥ pip install nodeenv
Collecting nodeenv
Installing collected packages: nodeenv
Successfully installed nodeenv-0.13.6
(nodetest) ➥ nodeenv -p --prebuilt
 * Install node (6.2.2)... done.
 * Appending data to /tmp/nodetest/bin/activate
(nodetest) ➥ which node
/tmp/nodetest/bin/node
(nodetest) ➥ which npm
/tmp/nodetest/bin/npm

```
comment
created
mark-tan
username_0
Hi! I'm using nodeenv 0.13.6 on Ubuntu 14.04

I ran the command `nodeenv -p --node=system` instead of `nodeenv -p --prebuilt` because the latter still tries to download node.
comment
created
ekalinin
username_1
Should be fixed in the last version.

Just tried:
```
➥ cat /etc/issue
Ubuntu 16.04.1 LTS \n \l

➥ grep ^test4 -A 10 Makefile
test4: clean
        @echo " ="
        @echo " = test4: separate nodejs's env for python3.5"
        @echo " ="
        @rm -rf env                                                 && \
                virtualenv --no-site-packages --python=python3.5 env    && \
                . env/bin/activate                                      && \
                python setup.py install                                 && \
                nodeenv -p --node=system

➥ make test4
 =
 = test4: separate nodejs's env for python3.5
 =
Running virtualenv with interpreter /usr/bin/python3.5
Using base prefix '/usr'
New python executable in ~/Projects/nodeenv/env/bin/python3.5
Also creating executable in ~/Projects/nodeenv/env/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
...
Installed ~/Projects/nodeenv/env/lib/python3.5/site-packages/nodeenv-1.0.0-py3.5.egg
Processing dependencies for nodeenv==1.0.0
Finished processing dependencies for nodeenv==1.0.0
 * Appending data to ~/Projects/nodeenv/env/bin/activate

➥ . env/bin/activate
(env) ➥ node -v
v4.2.6
```
comment
closed
ekalinin
username_1
issue