Open
Description
Expected Behavior
I want to init a project.
Actual Behavior
When I try to init a project with node 20 it says that npm isn't returning a valid version.
When I try to init a project after switching to node 22 it says a module is missing.
When I try to init a project with node 22 after deleting my ~/.npm it says nothing other than the usual npm install warnings that say three packages being used are no longer supported.
Steps to Reproduce
$ sudo snap refresh node --channel 20/stable
...
$ npx cdktf-cli init
...
Could not run version check - npm returned an invalid semver
Usage Error: Node.js version could not be determined
$ sudo snap refresh node --channel 22/stable
...
$ rm -rf ~/.npm
$ npx cdktf-cli; echo $?
...
7
Versions
External Error: Could not find cdktf.json. Make sure there is a cdktf.json file in the current directory or one of its parents.
Providers
No response
Gist
No response
Possible Solutions
No response
Workarounds
No response
Anything Else?
No response
References
No response
Help Wanted
- I'm interested in contributing a fix myself
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment