title: Uninstall AWS CDK Command Line Tool on Ubuntu 20.04.3LTS
body: <p>UPDATE: Resolved by removing the .nvm folder, closing terminal, and then running npm install -g aws-cdk@2.10.0 again resolved the issue. I hope this helps anyone else experiencing the same problem.</p>
  <p>I am trying to upgrade from AWS CDK 1 to 2, but for some reason I am unable to update the <a href="https://docs.aws.amazon.com/cdk/v2/guide/cli.html" rel="nofollow noreferrer">CDK command line tool</a> on my machine. No matter what version I install through npm, running <code>cdk --version</code> still prints 1.89.0 for me.</p>
  <p>So I figured I would just uninstall the CDK and start over. Sadly, that didn't work either.</p>
  <p>I've tried both updating and uninstalling globally:</p>
  <pre><code>13:52 $ npm install -g aws-cdk@2.10.0
  
  added 212 packages, and audited 213 packages in 20s
  
  1 critical severity vulnerability
  
  To address all issues, run:
    npm audit fix
  
  Run `npm audit` for details.
  13:54 $ cdk --version
  1.89.0 (build df7253c)
  13:54 $ npm uninstall -g aws-cdk
  
  up to date, audited 1 package in 781ms
  
  found 0 vulnerabilities
  
  </code></pre>
  <p>And locally:</p>
  <pre><code>14:10 $ npm uninstall aws-cdk
  
  up to date, audited 1 package in 859ms
  
  found 0 vulnerabilities
  </code></pre>
  <p>I'm using the following versions:</p>
  <ul>
  <li>Ubuntu 20.04.3 LTE</li>
  <li>Node 16.3.0 through nvm 0.39.1</li>
  <li>npm 8.5.0</li>
  </ul>
  <p>I also checked if &quot;cdk&quot; actually refers to a apt-get or snap package, but I didn't see anything when listing all packages with either <code>snap list</code> or <code>apt list --installed</code>.</p>
  <p>Any help greatly appriciated!</p>