NightmareJS没有显示任何内容

时间:2019-07-01 15:10:55

标签: javascript node.js nightmare

我正在尝试从https://github.com/segmentio/nightmare执行示例,但是它不返回任何内容


package.json

#!/bin/bash
echo -n "Please enter your name:"
read name
echo "name: $name" >> /tmp/name.txt
echo -n "Please enter your age:"
read age
echo "age: $age" >> /tmp/age.txt

index.js

{
  "name": "new_nightmare",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "nightmare": "^3.0.2"
  }
}

输出

enter image description here

0 个答案:

没有答案