Skip to content
The Chat Archive
gpt-3.5-turbo-0125· OpenAI WildChat-4.8M (AI2)

User: hi Assistant: Hello! How can I assist you today? User: 如何让 mac 后台运行 npm 脚本…

  1. User

    User: hi Assistant: Hello! How can I assist you today? User: 如何让 mac 后台运行 npm 脚本 Assistant:

  2. Assistant

    您可以使用nohup命令来让mac上的npm脚本在后台运行。您可以通过以下方式来执行npm脚本:

    nohup npm run your-script &
    

    这样就可以让npm脚本在后台运行而不会受到终端关闭的影响。希望对您有帮助!