Skip to content

Create node executable shim in nodeenv's bin/ in case system node is used #59

@andreypopp

Description

@andreypopp

Hi,

some of our people prefer using virtualenv without activating environment with activate script — by adjusting PATH env var or by referencing executables directly in venv's bin/.

I think this is worth supporting and currently I do this via putting the following script into bin/ during creating nodeenv:

#!/bin/sh
export NODE_PATH=/path/to/nodeenv/lib/node_modules
export NPM_CONFIG_PREFIX=/path/to/nodeenv
exec /path/to/system/installed/node $*

What do you think of this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions