var page = require('webpage').create();需要安装什么模块?
发布于 10 年前 作者 kingapple 10788 次浏览 最后一次编辑是 8 年前

运行报错: Cannot find module webpage

安装webpage也不行:( 说没有交webpage的模块啊。。。

npm install webpage npm http GET http://registry.npm.taobao.org/webpage npm http 204 http://registry.npm.taobao.org/webpage npm ERR! Error: failed to fetch from registry: webpage npm ERR! at RegClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm
node_modules\npm-registry-client\lib\get.js:134:18) npm ERR! at cb (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-re gistry-client\lib\request.js:27:9) npm ERR! at RegClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm
node_modules\npm-registry-client\lib\request.js:122:16) npm ERR! at cb (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-re gistry-client\lib\request.js:158:9) npm ERR! at RegClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm
node_modules\npm-registry-client\lib\request.js:306:12) npm ERR! at Request.self.callback (C:\Program Files\nodejs\node_modules\npm
node_modules\request\request.js:123:22) npm ERR! at Request.EventEmitter.emit (events.js:98:17) npm ERR! at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\no de_modules\request\request.js:893:14) npm ERR! at Request.EventEmitter.emit (events.js:117:20) npm ERR! at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_module s\npm\node_modules\request\request.js:844:12) npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/isaacs/npm/issues

npm ERR! System Windows_NT 6.1.7601 npm ERR! command “C:\Program Files\nodejs\\node.exe” “C:\Program Files\nod ejs\node_modules\npm\bin\npm-cli.js” “install” "webpage" npm ERR! cwd D:\del npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.24 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! D:\del\npm-debug.log npm ERR! not ok code 0

2 回复

反正就是npm 安装失败

回到顶部