【问题标题】:Starting node with Makefile command using gnome-terminal No such file or directory使用 gnome-terminal 使用 Makefile 命令启动节点 没有这样的文件或目录
【发布时间】:2019-12-23 01:47:54
【问题描述】:

gnome-terminal 版本 3.28.1 开始 nodemon 与调试模式 gnome-terminal --working-directory=/home/theproject -e './node_modules/nodemon/bin/nodemon.js index.js'

导致新窗口出现错误No such file or directory

【问题讨论】:

    标签: node.js makefile gnome-terminal


    【解决方案1】:

    我认为-e 现在已弃用...

    试试看:

    gnome-terminal --working-directory=/home/theproject -- /bin/bash -c 'ls ; sleep 1'

    在引号 ('...') 内,您可以将您的命令由; 分隔。如果你想在最后保持终端打开:

    gnome-terminal --working-directory=/home/theproject -- /bin/bash -c 'ls ; sleep 1 ; echo press any key ; read'

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-01-10
      • 1970-01-01
      • 1970-01-01
      • 2016-06-24
      • 2018-11-12
      • 2019-09-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多