How to add NodeJS and node_modules to a Mac App

前端 未结 1 1120
小蘑菇
小蘑菇 2021-02-10 00:06

I am writing a Mac App that currently relies on the presence of a node binary. The main inconvenience with this approach is, that the user needs to grant access to the node bina

1条回答
  •  有刺的猬
    2021-02-10 00:28

    I shipped an app on the OS X App Store that relies on node. What I ended up doing was include node directly in my app directory. node will crawl the filesystem and use the first node_modules it can find, so you don't have to configure anything.

    Here's the structure I eventually used:

    enter image description here

    0 讨论(0)
提交回复
热议问题