Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js nohup npm启动终止_Node.js_Linux_Nohup - Fatal编程技术网

Node.js nohup npm启动终止

Node.js nohup npm启动终止,node.js,linux,nohup,Node.js,Linux,Nohup,我正试图用这个命令在后台运行我的reactjs项目 nohup npm start>/dev/null 2>&1& 输出应该被重定向,nohup表示在stty被切断时不终止进程。 但是,我的npm节点根本没有运行。这是nohup日志 Starting the development server... events.js:291 throw er; // Unhandled 'error' event ^ Error: EBADF: bad file descrip

我正试图用这个命令在后台运行我的reactjs项目

nohup npm start>/dev/null 2>&1&

输出应该被重定向,nohup表示在stty被切断时不终止进程。 但是,我的npm节点根本没有运行。这是nohup日志


Starting the development server...

events.js:291
      throw er; // Unhandled 'error' event
      ^

Error: EBADF: bad file descriptor, read
Emitted 'error' event on ReadStream instance at:
    at internal/fs/streams.js:202:14
    at FSReqCallback.wrapper [as oncomplete] (fs.js:528:5) {
  errno: -9,
  code: 'EBADF',
  syscall: 'read'
}
你可以用。您可以从链接中查看更多高级方案。下面是最简单的使用方法

sudo npm install forever -g
然后

你可以用。您可以从链接中查看更多高级方案。下面是最简单的使用方法

sudo npm install forever -g
然后


从“React”导入React,{Component};^^^^SyntaxError:在使用foreverimport React时,无法在模块外部使用import语句,{Component}来自“React”;^^SyntaxError:使用forever时,无法在模块外使用import语句