LoginSignup
1
1

More than 1 year has passed since last update.

node.js v16 で nexeのコンパイルがこけてしまった時の対処法

Posted at

nexeとは

引用: Nexeは、Node.jsアプリケーションを単一の実行可能ファイルにコンパイルするコマンドラインユーティリティです。

使用環境

  • macOS 11.5.1 (Intel)
  • node v16.13.2
  • nexe 4.0.0-beta.19

発生した事象

  • npx nexe {project.js} してみる。
    • エラーが出て using the --build flag と表示される。
  • npx nexe {project.js} --build  してみる。
    • Error: python ./configure.py --dest-cpu=x64 exited with code: 1 というエラーが出てコンパイルが失敗してしまう

解決策

下記のissue 参照。
https://github.com/nexe/nexe/issues/926

npx nexe src/index.js --build --verbose --python python3
とすることでコンパイルがが成功した。
(なお今回使用したプロジェクトの場合、初回コンパイルに数時間を要した)
(2回目以降は30秒程度でコンパイルできている)

1
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
1
1