Package Details: aws-cdk 2.63.2-1

Git Clone URL: https://aur.archlinux.org/aws-cdk.git (read-only, click to copy)
Package Base: aws-cdk
Description: CDK Toolkit, the command line tool for CDK apps
Upstream URL: https://github.com/awslabs/aws-cdk#readme
Licenses: Apache
Submitter: christoph.gysin
Maintainer: christoph.gysin
Last Packager: christoph.gysin
Votes: 11
Popularity: 0.99
First Submitted: 2020-04-22 05:40 (UTC)
Last Updated: 2023-02-05 08:07 (UTC)

Latest Comments

christoph.gysin commented on 2023-01-11 20:19 (UTC)

@pigfrown The arch nodejs package is currently at 19.4.0-1. You must have set up an older version using nvm.

pigfrown commented on 2023-01-11 13:37 (UTC) (edited on 2023-01-11 13:38 (UTC) by pigfrown)

If you are getting the following error:

/usr/lib/node_modules/aws-cdk/lib/index.js:12422
    home = path.join((os.userInfo().homedir ?? os.homedir()).trim(), ".cdk");
                                             ^

SyntaxError: Unexpected token '?'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/usr/lib/node_modules/aws-cdk/bin/cdk.js:3:15)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

It's because you are using the wrong version of node. aws-cdk requires node 14, the arch nodejs package is currently 12.

Fix is:

nvm install 14
nvm use 14

ChrisLane commented on 2022-05-10 09:58 (UTC)

@christoph.gysin could you add me as a maintainer or update the package please?

ChrisLane commented on 2022-04-01 15:46 (UTC)

diff --git a/PKGBUILD b/PKGBUILD
index c03e2ef..fdf620b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Christoph Gysin <christoph.gysin@gmail.com>

 pkgname=aws-cdk
-pkgver=2.17.0
+pkgver=2.19.0
 pkgrel=1
 pkgdesc="CDK Toolkit, the command line tool for CDK apps"
 arch=(any)
@@ -11,7 +11,7 @@ makedepends=('npm')
 depends=('nodejs')
 optdepends=('python: python language support')
 source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
-sha1sums=('cb9149c55f1bec54eacfe0242d3454faf4292e2e')
+sha1sums=('b5d03bb1e0f08f62e73e84c0f0f1f4903820ff53')

 package() {
   local _npmdir="$pkgdir/usr/lib/node_modules/"

christoph.gysin commented on 2021-12-11 16:47 (UTC)

aws-cdk-v1.x has moved to https://aur.archlinux.org/packages/aws-cdk-v1/