File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,16 @@ export const application = (
5050 // Use pkglab add to pin @clerk /* packages to local registry versions and install
5151 const clerkDeps = config . clerkDependencies ;
5252 if ( clerkDeps . length > 0 ) {
53- await run ( `pkglab add ${ clerkDeps . join ( ' ' ) } ` , { cwd : appDirPath , log } ) ;
53+ // Debug: capture environment that will be inherited by pkglab/npm
54+ log ( `[debug] appDirPath: ${ appDirPath } ` ) ;
55+ log ( `[debug] npm_config env vars:` ) ;
56+ for ( const [ k , v ] of Object . entries ( process . env ) ) {
57+ if ( k . toLowerCase ( ) . startsWith ( 'npm_config' ) || k . toLowerCase ( ) . includes ( 'registry' ) ) {
58+ log ( `[debug] ${ k } =${ v } ` ) ;
59+ }
60+ }
61+ await run ( 'npm config get registry' , { cwd : appDirPath , log } ) ;
62+ await run ( `pkglab add ${ clerkDeps . join ( ' ' ) } --verbose` , { cwd : appDirPath , log } ) ;
5463 } else {
5564 await run ( scripts . setup , { cwd : appDirPath , log } ) ;
5665 }
You can’t perform that action at this time.
0 commit comments