jsii
jsii copied to clipboard
Remove dependence on global "node" executable
Describe the feature
This project relies on a "node" executable on PATH, regardless of what node.js executable is used to run cdk.
https://github.com/aws/jsii/blob/main/packages/%40jsii/python-runtime/src/jsii/_kernel/providers/process.py#L251
Use Case
Node.js may not be installed globally. Or perhaps it is installed, but not named "node." E.g. node18, node19 similar to python2, python3.
Proposed Solution
Use an env var, like
NODE_RUNTIME=/usr/local/bin/node18
Other Information
No response
Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change