cloudeninc / clouden-cdk-aws-lambda-typescript

TypeScript Build Step for AWS CDK Lambda
MIT License
8 stars 2 forks source link

Npx ENOENT #5

Closed GuyARoss closed 4 years ago

GuyARoss commented 4 years ago

I get this error when running my cdk deploy step.

Error: spawnSync npx ENOENT
    at Object.spawnSync (internal/child_process.js:1041:20)
    at Object.spawnSync (child_process.js:616:24)
    at TypeScriptAssetCode.typeScriptBuild (C:\Users\guyal\Documents\nex-skill\flight\modules\infrastructure\node_modules\@clouden-cdk\aws-lambda-typescript\lib\typescript-code.js:59:40)
    at TypeScriptAssetCode.bind (C:\Users\guyal\Documents\nex-skill\flight\modules\infrastructure\node_modules\@clouden-cdk\aws-lambda-typescript\lib\typescript-code.js:42:14)
    at new Function (C:\Users\\Documents\nex-skill\flight\modules\infrastructure\node_modules\@aws-cdk\aws-lambda\lib\function.ts:558:29)
    at new AwsStack (C:\Users\\Documents\nex-skill\flight\modules\infrastructure\lib\aws-stack.ts:11:29)

Here is what my stack looks like

    const employeesPoller = new Function(this, 'employeesPoller', {
      code: TypeScriptCode.asset('lib/services'),
      handler: 'poller.handler',
      runtime: Runtime.NODEJS_12_X,
    })

Additionally, I am on windows 10.

Any ideas?