0
我新手的Node.js和我已經下載從GitHub的google ranking一個谷歌排名的文件。當我嘗試運行一個文件example.js,它給我的錯誤「無法找到模塊‘jscrape’」。如何運行的node.js
我甚至嘗試安裝jscrape模塊,但它給我的錯誤。
我發現的package.json文件依賴性如下
{
"author": "Ben Buckman <[email protected]> (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": "[email protected]: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的,任何人都可以請幫我做這個。