{"library":"nodeenv","title":"Node.js virtual environment builder","description":"Nodeenv is a Python tool that facilitates creating isolated Node.js environments, similar to how `virtualenv` manages Python environments. It allows developers to install specific Node.js versions and global npm packages within a dedicated directory, preventing conflicts between different projects. Currently at version 1.10.0, the library maintains an active development pace with several releases per year, incorporating new Python and Node.js version support, as well as bug fixes and improvements like UV virtual environment integration.","language":"python","status":"active","last_verified":"Sat Apr 11","install":{"commands":["pip install nodeenv"],"cli":{"name":"nodeenv","version":"1.10.0"}},"imports":[],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# First, create and activate a Python virtual environment\npython -m venv my_node_project\nsource my_node_project/bin/activate\n\n# Install nodeenv into the active Python virtual environment\npip install nodeenv\n\n# Create a Node.js virtual environment within the Python venv, installing a specific Node.js version\n# The --python-virtualenv (-p) flag integrates it with the current Python venv\nnodeenv --python-virtualenv --node=lts node_env\n\n# Note: nodeenv modifies the activation scripts. Reactivate the Python venv\n# or manually source the node_env/bin/activate script.\nsource my_node_project/bin/activate\n\n# Verify Node.js and npm versions\nnode -v\nnpm -v\n\n# Install a global npm package (e.g., `pnpm`)\nnpm install -g pnpm\n\n# Deactivate the node environment when done\ndeactivate_node\n# Then deactivate the Python virtual environment\ndeactivate","lang":"bash","description":"Nodeenv is primarily a command-line tool. The standard workflow involves setting up a Python virtual environment, installing `nodeenv` into it, and then using `nodeenv` to create a Node.js environment. The `--python-virtualenv` (or `-p`) flag integrates the Node.js environment directly into the currently active Python virtual environment, updating its activation scripts. After installation, reactivating the Python environment or sourcing the `node_env/bin/activate` script ensures the new Node.js environment is active.","tag":"stale","tag_description":"widespread failures or data too old to trust","last_tested":"2026-04-23","results":[{"runtime":"python:3.10-alpine","exit_code":1},{"runtime":"python:3.10-slim","exit_code":1},{"runtime":"python:3.11-alpine","exit_code":1},{"runtime":"python:3.11-slim","exit_code":1},{"runtime":"python:3.12-alpine","exit_code":1},{"runtime":"python:3.12-slim","exit_code":1},{"runtime":"python:3.13-alpine","exit_code":1},{"runtime":"python:3.13-slim","exit_code":1},{"runtime":"python:3.9-alpine","exit_code":1},{"runtime":"python:3.9-slim","exit_code":1}]},"compatibility":null}