This website uses cookies in order to provide better service to our customers. If you agree to our use of cookies, please click the "Accept" button.
For more information on our cookie policy, please see the "Terms"
logo image

nexeを使用し、node.jsで実行ファイルを作成しようとするとエラー

Icon representing a data.
2022-01-11
Icon show updated_at
2022-01-11
1
Twitter icon.
Node
Javascript
nexe

Precondition

  • Webpackでバンドルしたデータを対象にnexeを使用する
  • Node v14.18.1
  • nexe v4.0.0-beta.19

Fact

実行するとエラーが発生する。

nexe main.js 

Error log or Error Massage

→ nexe main.js 
ℹ nexe 4.0.0-beta.19
✔ Downloading pre-built Node.js
✔ Finished in 0.64s

Error: https://github.com/nexe/nexe/releases/download/v3.3.3/mac-x64-14.18.1 is not available, create it using the --build flag

See nexe -h for usage..

Cause

対応しているNodeが v14.15.3までだったのが原因。
https://github.com/nexe/nexe/releases

image

Method

nodebrewでv14.15.3にバージョンを切り替えて、実行してみると無事に実行ファイルの作成ができた。

在宅専門のフリーランスエンジニアをしています。 得意言語はVBAです。Next.jsとTypescriptを鍛錬中。
Area to place ads.
Area to place ads.
Comments
There are no comments on this article yet.

Environment Library tools

Node
Javascript
nexe
在宅専門のフリーランスエンジニアをしています。 得意言語はVBAです。Next.jsとTypescriptを鍛錬中。