Aws-cdk: cdk version is not displaying installed version

Created on 28 Oct 2019  ·  6Comments  ·  Source: aws/aws-cdk


displays an old version
in my current scenario it shows 1.13.1 (build 96cfc63), even if I've updated to 1.15

Reproduction Steps


I am working on a Mac ( got the same behaviour on python 2.7.16 and also on python 3.7.4 )

Error Log

Environment

  • *CLI Version :aws --version
    aws-cli/1.16.215 Python/2.7.16 Darwin/19.0.0 botocore/1.12.205*
  • *Framework Version:it should be 1.15, but it shows 1.13*
  • *OS :Mac OS Catalina*
  • *Language :EN*

Other


This is :bug: Bug Report

bug efforsmall in-progress p2 packagtools

Most helpful comment

I cannot say why the version was not displaying correct.
I've initially ran only updating command
pip install --upgrade aws-cdk.core

I've tried now reinstalling through:
npm install -g aws-cdk
and that seems it fixed now the problem and, the version is being displayed properly now.
Closing this issue - thank you.

All 6 comments

The correct syntax is cdk --version, but it could be nice to also support cdk version as a shortcut.

Hi @eladb ,

this is what I meant cdk --version
thank you for the prompt response.

( Congrats on this wonderful project, I am watching it very closely to see if we can use it in production )

I can probably take this one

hi @mussy,
just to be sure you got this right,
the problem I am facing is is that I do not get the correct version displayed when running:
cdk --version

Oh, no sorry, that's not what I understood. I think @eladb misunderstood you as well.

Did you upgrade your global CDK version, or just your local dependencies?

> npm list -g --depth=0 | grep cdk
├── [email protected]

> cdk --version # your globally installed cdk package
1.15.0 (build bdbe3aa)

> npx cdk --version # your local cdk package
1.15.0 (build bdbe3aa)

I cannot say why the version was not displaying correct.
I've initially ran only updating command
pip install --upgrade aws-cdk.core

I've tried now reinstalling through:
npm install -g aws-cdk
and that seems it fixed now the problem and, the version is being displayed properly now.
Closing this issue - thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

peterdeme picture peterdeme  ·  3Comments

nzspambot picture nzspambot  ·  3Comments

Kent1 picture Kent1  ·  3Comments

artyom-melnikov picture artyom-melnikov  ·  3Comments

cybergoof picture cybergoof  ·  3Comments