8
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AWS CDKのaws-lambda-nodejsで"Error: spawnSync docker ENOENT"が出るとき

Posted at

問題

Lambda関数をTypeScriptで書くためにaws-lambda-nodejsを使おうとしたら、下記のエラーが出た。

Error: spawnSync docker ENOENT
 at Object.spawnSync (node:internal/child_process:1083:20)
    at Object.spawnSync (node:child_process:812:24)
    at dockerExec
...

解決策

実行環境がmacOSの場合は、ビルドモジュールであるesbuildを手動でインストールするのが良いらしい。

$ npm install --save-dev esbuild@0

or

$ yarn add --dev esbuild@0

参照

8
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?