Package Details: aws-cdk 2.173.1-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.000038
First Submitted: 2020-04-22 05:40 (UTC)
Last Updated: 2024-12-14 18:14 (UTC)

Dependencies (3)

Required by (1)

Sources (1)

Latest Comments

christoph.gysin commented on 2023-06-13 20:30 (UTC)

@joshm This package doesn't install nodejs, it merely lists it as a dependency. Pacman installs dependencies. Check the pacman docs: https://archlinux.org/pacman/pacman.8.html#_transaction_options_apply_to_em_s_em_em_r_em_and_em_u_em

E.g:

pacman --nodeps -p aws-cdk-2.38.1-1.pkg.tar.zst

joshm commented on 2023-06-13 19:51 (UTC) (edited on 2023-06-13 19:52 (UTC) by joshm)

This package doesn't play nice with NVM. It wants to install nodejs-20.2.1 and npm-8.19.2-2 but I'm not interested in having Node installed directly. Is there a workaround? Note that I've set NVM to use the latest 20.x version and the dep is still trying to be installed.

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/