Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document technique for manually managing NPM dependencies #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rhencke
Copy link

@rhencke rhencke commented Mar 7, 2025

This is useful if a package.json already exists or if there is a need to use package versions from package-lock.json

This is useful if a package.json already exists or if there is a need to use package versions from package-lock.json
os.environ["NODE_PATH"] = os.path.join(os.path.dirname(__file__), "node_modules")
from javascript import eval_js
require = eval_js("require")
chalk = require("chalk")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a supported feature; it's more of a hack. In which it should not be documented as if it were an intentional and supported feature.

Instead, would need to look at how to properly support this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants