Skip to content

Commit 98ce115

Browse files
committed
fix: fix nits
1 parent 861821e commit 98ce115

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $ cdklocal --version
2222
(Note: Depending on your local setup, you may or may not have to use the global `npm` installation flag `-g` above.)
2323

2424
### Mac OS specific `MODULE_NOT_FOUND` issue
25-
On Mac OS, brew could be used to install AWS CDK, which will result in a `MODULE_NOT_FOUND` error from `cdklocal`.
25+
On Mac OS, brew can be used to install AWS CDK, which might result in a `MODULE_NOT_FOUND` error from `cdklocal`.
2626
To resolve this, set the `NODE_PATH` variable pointing to your AWS CDK's `node_module` folder to expand the lookup path for modules.
2727
```bash
2828
$ export NODE_PATH=$NODE_PATH:/opt/homebrew/Cellar/aws-cdk/<CDK_VERSION>/libexec/lib/node_modules

bin/cdklocal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ const patchPre_2_14 = () => {
369369
} catch(e) {
370370
if (e.code == "MODULE_NOT_FOUND") {
371371
console.log(e);
372-
console.log("`aws-cdk` module NOT found! Have you tried to add it to your `NODE_PATH`?");
373-
process.exit(1);
372+
console.error("`aws-cdk` module NOT found! Have you tried adding it to your `NODE_PATH`?");
373+
throw e;
374374
}
375375
}
376376

0 commit comments

Comments
 (0)