macaca icon indicating copy to clipboard operation
macaca copied to clipboard

PC端驱动支持多window切换

Open ftvbftvbq opened this issue 10 years ago • 5 comments

  • Macaca Version: 1.0.24

  • Macaca Doctor: Node.js checklist:

    node env: /usr/local/bin/node node version: v5.5.0

    iOS checklist:

    Xcode is installed at: /Applications/Xcode.app/Contents/Developer Xcode Command Line Tools is ready, version: 2343. ios_webkit_debug_proxy is installed at: /usr/local/bin/ios_webkit_debug_proxy

    Android checklist:

    JAVA version is 1.8.0_31 JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home ANDROID_HOME is set to /Users/edison/Library/Android/sdk

  • Platform: OS X E Capitan 10.11.4

macaca-electron is installing for the first time with args: ["install","macaca-electron","--registry=https://registry.npmjs.org/"]

| loading...

[email protected] postinstall /usr/local/lib/node_modules/macaca-cli/node_modules/node-installer/node_modules/electron-prebuilt node install.js

Downloading electron-v0.37.8-darwin-x64.zip Error: read ECONNRESET [email protected] /usr/local/lib/node_modules/macaca-cli/node_modules/node-installer ├── [email protected] extraneous ├── [email protected] extraneous ├── [email protected] extraneous ├── [email protected] extraneous └── [email protected] extraneous

/usr/local/lib/node_modules/macaca-cli/node_modules/node-installer/node_modules/electron-prebuilt/install.js:22 throw err ^

Error: read ECONNRESET at exports._errnoException (util.js:856:11) at TLSWrap.onread (net.js:544:26) npm WARN install:[email protected] [email protected] postinstall: node install.js npm WARN install:[email protected] Exit status 1

install macaca-electron failed with Error: Cannot find module 'macaca-electron'

responseHandler.js:63:12 [master] pid:14909 Send Error Respone to Client: TypeError: Electron is not a function responseHandler.js:69:14 [master] pid:14909 TypeError: Electron is not a function at WebdriverServer.detectDevice (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/index.js:80:14) at WebdriverServer.start (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/index.js:40:22) at next (native) at onFulfilled (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:65:19) at /usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:54:5 at Object.co (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:50:10) at Object.toPromise (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:118:63) at next (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:99:29) at onFulfilled (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:69:7) at /usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:54:5

TypeError: Electron is not a function at WebdriverServer.detectDevice (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/index.js:80:14) at WebdriverServer.start (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/index.js:40:22) at next (native) at onFulfilled (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:65:19) at /usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:54:5 at Object.co (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:50:10) at Object.toPromise (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:118:63) at next (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:99:29) at onFulfilled (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:69:7) at /usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:54:5

ftvbftvbq avatar May 03 '16 07:05 ftvbftvbq

@ftvbftvbq due to network env.

try export:

ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/

xudafeng avatar May 03 '16 10:05 xudafeng

It's done

ftvbftvbq avatar May 03 '16 10:05 ftvbftvbq

💯

xudafeng avatar May 03 '16 10:05 xudafeng

you said try export: ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/ but im confused . could you give me more details about that?

azl397985856 avatar May 19 '16 12:05 azl397985856

https://github.com/macacajs/macaca-electron/commit/8174e052d69c476be3597effef55e1f73b33550f

xudafeng avatar Sep 21 '16 08:09 xudafeng