When using cdk latest version 1.23.0 with python versions listed below, the command 銆宑dk init --language python 銆峟ails and the following error is output.
Invalid regular expression: /([\p{Lowercase_Letter}\d])(\p{Uppercase_Letter})/: Invalid escape
Could you please check?
I also had the same issue just now, fixed by updating nodejs to v12.15.0
@SGA-hiromichi-sugawara @spfpaul - what Nodejs
version did you have previously?
I'm trying to reproduce the issue by spinning up a Cloud9 environment (region: us-west-2
instance type: m5.large
) and installed cdk. It came with Nodejs 10.18.0
and was working out of the box.
I'm also curious what characters were in your folder (I tried some characters with spaces and hyphens, but probably should not be guessing). Is there anything unique or special there that we might not be handling correctly?
I got same issue from Java...
using cdk init app --language java
Output:
Applying project template app for java
Invalid regular expression: /([\p{Lowercase_Letter}\d])(\p{Uppercase_Letter})/: Invalid escape
@fafriat can you provide additional details
have you tried updating node as suggested by @spfpaul
I just solved it by upgrading Nodejs:
sudo npm install -g n
sudo n stable
Thank you!
Closing this issue since it seems to have been solved. Feel free to reopen.
for windows , uninstall node, and reinstall it. It will work
Most helpful comment
I just solved it by upgrading Nodejs:
sudo npm install -g n
sudo n stable
Thank you!