File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 ` .
2626To 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments