V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Auston
V2EX  ›  问与答

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

  •  
  •   Auston · May 23, 2025 · 840 views
    This topic created in 343 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   ·   2452 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 05:15 · PVG 13:15 · LAX 22:15 · JFK 01:15
    ♥ Do have faith in what you're doing.