Auston
V2EX  ›  问与答

node.js 使用 pkg 在服务器上进行代码打包,不支持 node20、node22 这些怎么办?

  •  
  •   Auston · May 23, 2025 · 1078 views
    This topic created in 430 days ago, the information mentioned may be changed or developed.
    我是个新手,刚结束 node.js ,想用 node.js 做数据 IO 接口开发,开发环境使用的 node22 ,但是进行编译打包时指定 target 为:node22-linux-x64 ,报错:

    > [email protected]
    > Error! No available node version satisfies 'node22'

    怎么确定 pkg 支持的 target 。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5485 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 07:53 · PVG 15:53 · LAX 00:53 · JFK 03:53
    ♥ Do have faith in what you're doing.