我是 Node.js 的新手,我已经从 github下载了谷歌排名。当我尝试运行文件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 很陌生,任何人都可以帮我做这件事。