如何在node.js中运行google排名文件

时间:2013-06-24 07:36:10

标签: windows node.js google-ranking

我是Node.js的新手,我从github下载了 google ranking 。当我尝试运行文件 example.js 时,它给出了错误“无法找到模块'jscrape'”

我甚至尝试安装jscrape模块,但它给了我错误。

我在package.json文件中找到了依赖关系,如下所示

   {
  "author": "Ben Buckman <ben@newleafdigital.com> (http://newleafdigital.com/)",
  "name": "google-ranking",
  "description": "Fetch the Google search ranking for a phrase",
  "version": "0.0.1",
  "homepage": "https://github.com/newleafdigital/nodejs-google-ranking",
  "repository": {
    "url": "git@github.com:newleafdigital/nodejs-google-ranking.git"
  },
  "main": "google-ranking.js",
  "dependencies": {
    "jscrape": "0.0.4",
    "async": "~0.1.22"
  },
  "devDependencies": {},
  "optionalDependencies": {},
  "engines": {
    "node": "*"
  }
  "scripts": {
  "preinstall": "npm install jscrape"
}
}

由于我对node.js不熟悉,任何人都可以帮助我这样做。

1 个答案:

答案 0 :(得分:0)

我建议访问实际页面http://nodejs.org/,因为这提供了有关下载,安装和一般使用方法的大量信息。随着大量的文档。

此外,我确信jScrape是一个由Node使用的软件。使用这种软件(其他示例包括WebSockets.IO,Express),必须使用Node下载和安装它们。