Easiest reproduction is through using alpine with docker.
$ docker run -ti python:2.7.14-alpine3.7 sh -exc 'pip install nodeenv; nodeenv nenv; . nenv/bin/activate; node --version'
+ pip install nodeenv
Collecting nodeenv
Downloading nodeenv-1.2.0.tar.gz
Building wheels for collected packages: nodeenv
Running setup.py bdist_wheel for nodeenv ... done
Stored in directory: /root/.cache/pip/wheels/6c/b7/e4/5073762ef06303f9f9e24a9640e049843ddd4ac0d6842e308b
Successfully built nodeenv
Installing collected packages: nodeenv
Successfully installed nodeenv-1.2.0
+ nodeenv nenv
* Install prebuilt node (9.5.0) ..... done.
+ . nenv/bin/activate
+ deactivate_node nondestructive
+ [ -n ]
+ [ -n -o -n ]
+ [ -n ]
+ unset NODE_VIRTUAL_ENV
+ [ ! nondestructive = nondestructive ]
+ [ ]
+ NODE_VIRTUAL_ENV=/nenv
+ export NODE_VIRTUAL_ENV
+ _OLD_NODE_VIRTUAL_PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ PATH=/nenv/lib/node_modules/.bin:/nenv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export PATH
+ _OLD_NODE_PATH=
+ NODE_PATH=/nenv/lib/node_modules
+ export NODE_PATH
+ _OLD_NPM_CONFIG_PREFIX=
+ _OLD_npm_config_prefix=
+ NPM_CONFIG_PREFIX=/nenv
+ npm_config_prefix=/nenv
+ export NPM_CONFIG_PREFIX
+ export npm_config_prefix
+ [ -z ]
+ _OLD_NODE_VIRTUAL_PS1=\w \$
+ [ x(nenv) != x ]
+ PS1=(nenv)\w \$
+ export PS1
+ [ -n -o -n ]
+ node --version
sh: node: not found
A workaround (I believe... it's still building) is to build from source:
apk --no-cache add gcc g++ make linux-headers
nodeenv nenv --source # wait for an eternity
Originally reported here: https://github.com/pre-commit/mirrors-jshint/issues/4
I wonder if we can ignore prebuilt linux binaries if we're not using glibc?
Easiest reproduction is through using
alpinewith docker.A workaround (I believe... it's still building) is to build from source:
apk --no-cache add gcc g++ make linux-headers nodeenv nenv --source # wait for an eternityOriginally reported here: https://github.com/pre-commit/mirrors-jshint/issues/4
I wonder if we can ignore prebuilt linux binaries if we're not using glibc?