2013-06-24 48 views
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的,任何人都可以請幫我做這個。

回答

0

我建議您訪問實際的頁面http://nodejs.org/因爲這提供了大量的信息下載,安裝和一般如何使用。隨着大量的文件。

而且我相信jScrape是一塊內置由節點使用的軟件。使用這種軟件(其他示例包括WebSockets.IO,Express),必須使用節點下載並安裝它們。