Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/382.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
Javascript 终端:%node example.js-bash:fg:没有这样的作业_Javascript_Node.js_Bash_Terminal - Fatal编程技术网

Javascript 终端:%node example.js-bash:fg:没有这样的作业

Javascript 终端:%node example.js-bash:fg:没有这样的作业,javascript,node.js,bash,terminal,Javascript,Node.js,Bash,Terminal,在终端中,当我尝试运行%node example.js时,为什么会得到-bash:fg:%:没有这样的作业 我已经安装了Node.js。我用示例代码保存了example.js: var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(1

在终端中,当我尝试运行%node example.js时,为什么会得到-bash:fg:%:没有这样的作业

我已经安装了Node.js。我用示例代码保存了example.js:

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
以下是登录页上的Web服务器示例。

运行node example.js成功,但没有%

node example.js会导致: 正在运行的服务器http://127.0.0.1:1337/

%用于定义作业,它需要作业标识符编号、字符串等。 我还认为,在该网站上,他们使用%作为提示。 试试node example.js -吉德尔


信用证:

%经常用作提示,我在从mongolab运行mongo shell命令时遇到了类似的情况

在%之后运行该命令。

%用于定义作业,它后面需要作业标识号、字符串等。我还认为,在该网站上,他们使用%作为提示。试试node example.js