Deploy infra - yargs do not define a valid target for node version 13.x
savnik opened this issue · 0 comments
savnik commented
When using node version 13.x and running npm run deploy-infra
in the cdk dir following error is display
Package exports for '/home/savnik/blackbird/aws-power-tuner-ui/cdk/node_modules/aws-cdk/node_modules/yargs' do not define a valid '.' target
In the cdk folder the error is originating from npx cdk deploy PowerTunerInfraStack
Steps to reproduce:
- Clone the latest master
- cd to website-output and run
npm install
- cd to cdk and run
npm install
- Still in cdk run
npm run deploy-infra
- See error message as stated above
Node version: 13.1.0
Quick fix:
Use version 12.x