Zoom-macsdk-electron error


#1


run npm start error log:
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/local/bin/node’, ‘/usr/local/bin/npm’, ‘start’ ]
2 info using npm@6.4.1
3 info using node@v8.12.0
4 verbose stack Error: missing script: start
4 verbose stack at run (/usr/local/lib/node_modules/npm/lib/run-script.js:155:19)
4 verbose stack at /usr/local/lib/node_modules/npm/lib/run-script.js:63:5
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:115:5
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:418:5
4 verbose stack at checkBinReferences_ (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:373:45)
4 verbose stack at final (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:416:3)
4 verbose stack at then (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:160:5)
4 verbose stack at ReadFileContext. (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:332:20)
4 verbose stack at ReadFileContext.callback (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16)
4 verbose stack at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:420:13)
5 verbose cwd /Users/chenfeiyang/Downloads/zoom-macsdk-electron-master/demo
6 verbose Darwin 18.2.0
7 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “start”
8 verbose node v8.12.0
9 verbose npm v6.4.1
10 error missing script: start
11 verbose exit [ 1, true ]

there is one thing i can’t fin
3.Get Electron release package and unzip. Rename package_mac.json to package.json in lib folder.

package_mac.json do not exist in lib folder.


#2

if i run electron .
error message:
App threw an error during load
Error: Cannot find module ‘…/lib/node_modules/zoomsdk/build/Release/zoomsdk’
at Module._resolveFilename (internal/modules/cjs/loader.js:584:15)
at Function.Module._resolveFilename (/usr/local/lib/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:43:12)
at Function.Module._load (internal/modules/cjs/loader.js:510:25)
at Module.require (internal/modules/cjs/loader.js:640:17)
at require (internal/modules/cjs/helpers.js:20:18)
at init (/Users/chenfeiyang/Downloads/zoom-macsdk-electron-master/lib/zoom_sdk.js:76:17)
at Object.getInstance (/Users/chenfeiyang/Downloads/zoom-macsdk-electron-master/lib/zoom_sdk.js:211:20)
at Object. (/Users/chenfeiyang/Downloads/zoom-macsdk-electron-master/demo/main.js:13:36)
at Object. (/Users/chenfeiyang/Downloads/zoom-macsdk-electron-master/demo/main.js:382:3)
at Module._compile (internal/modules/cjs/loader.js:693:30)


#3

You have changed the file hierarchy, which causing the lib file cannot find to be loaded. Please follow the file hierarchy in demo.


#4

demo not work well,so i change some code. here is your demo error,did not changed anything.

/Users/chenfeiyang/Downloads/zoom-macsdk-electron-master/demo/node_modules/electron/index.js:9
throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
^

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at Object. (/Users/chenfeiyang/Downloads/zoom-macsdk-electron-master/demo/node_modules/electron/index.js:9:9)
at Module._compile (module.js:653:30)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/Users/chenfeiyang/Downloads/zoom-macsdk-electron-master/demo/node_modules/electron/cli.js:3:16)
at Module._compile (module.js:653:30)

i have tried reinstall electron many times,not work.


#5

We can install and run demo successfully, please check your installation steps.


#6

i follow GitHub steps,but cannot run because there is no ‘start’ scripts in package.json(in demo folder).

0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/local/bin/node’, ‘/usr/local/bin/npm’, ‘start’ ]
2 info using npm@6.4.1
3 info using node@v8.12.0

i tried rename package_mac to package(in demo folder),but still error.

Error: Cannot find module ‘./lib/zoom_sdk.js’
at Module._resolveFilename (module.js:455:15)
at Function.Module._resolveFilename (/Users/chenfeiyang/Downloads/zoom-macsdk-electron-master/demo/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)

maybe my electron version not right,my electron version is 2.0.7


#7

https://developer.zoom.us/docs/electron-framework/install/
if i follow your install doc,even your command ‘sudo npm install -g electron –unsafe-perm=true’ not work

Error Info:
npm ERR! code EINVALIDTAGNAME

npm ERR! Invalid tag name “–unsafe-perm=true”: Tags may not have any characters that encodeURIComponent encodes.


#8

https://developer.zoom.us/docs/electron-framework/install/, This is old install step only for release [v4.1.20404.0209], what’s the version of node you use?


#9

node V8.1.2 just like Readme.md told.
and i download electron v4.0.1 and v2.0.7,but all failed to build.


#10

We all install follow the steps below with no error, please delete everything you installed, check your environment and follow the steps completely.


#11

what’s the version of electron you use?
i’m confused because i don’t know which steps can make it work.

  1. https://developer.zoom.us/docs/electron-framework/install/
    this seems old.

  2. https://github.com/zoom/zoom-macsdk-electron
    step 3:Get Electron release package and unzip. Rename package_mac.json to package.json in lib folder.
    thers is no package_mac.json file in lib folder,and what’s Electron release package mean?i use npm install electron.

thanks for your patience!


#12
  1. https://github.com/zoom/zoom-macsdk-electron, follow the step at this.
  2. Electron release package means the released zoom-macsdk-electron package. The package_mac.json file is in the zoom-macsdk-electron lib folder.

#13

what’s the version of electron you use?

no package_mac.json file in the zoom-macsdk-electron lib folder

thanks for your patience again XD


#14

Sorry, clerical error, package_mac.json file is in demo folder.
My electron version is v2.0.16


#15

good news!new error

App threw an error during load
Error: Cannot find module ‘…/…/node_modules/nodobjc’
at Module._resolveFilename (module.js:543:15)
at Function.Module._resolveFilename (/Users/chenfeiyang/Downloads/zoom-macsdk-electron-415632981e248dee5061d67142df1a587b29b954/demo/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:473:25)
at Module.require (module.js:586:17)
at require (internal/module.js:11:18)
at Object. (/Users/chenfeiyang/Downloads/zoom-macsdk-electron-415632981e248dee5061d67142df1a587b29b954/demo/lib/mac/meeting_action_bridge.js:1:164)
at Object. (/Users/chenfeiyang/Downloads/zoom-macsdk-electron-415632981e248dee5061d67142df1a587b29b954/demo/lib/mac/meeting_action_bridge.js:169:3)
at Module._compile (module.js:642:30)
at Object.Module._extensions…js (module.js:653:10)
at Module.load (module.js:561:32)

i tried move electron to demo/node_modules folder and move lib to demo folder.
i tried ‘npm install nodobjc’ but not work.and i found nodobjc is stop updating.


#16

You don’t need to try anything, all these we have did in preinstall script, just according to steps, only run npm install.
before do these, need make sure you node.js version is under 8.12.0


#17

Install npm and Node.js. Make sure the Node.js version is v8.12.0 (Carbon) or older

i’m sure my Node.js version is v8.12.0,what’s the version of Node.js you use? ;p

now i only rename package_mac.json to package.json then run ‘npm install’

and then npm throw error:

gyp ERR! build error

gyp ERR! stack Error: make failed with exit code: 2

gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)

gyp ERR! stack at emitTwo (events.js:126:13)

gyp ERR! stack at ChildProcess.emit (events.js:214:7)

gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)

gyp ERR! System Darwin 18.2.0

gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”

gyp ERR! cwd /Users/chenfeiyang/Downloads/zoom-macsdk-electron-master/demo/node_modules/ffi

gyp ERR! node -v v8.12.0

gyp ERR! node-gyp -v v3.8.0

gyp ERR! not ok

npm WARN demo@1.0.0 No repository field.

npm WARN The package electron-packager is included as both a dev and production dependency.

npm WARN The package electron-rebuild is included as both a dev and production dependency.

npm WARN The package electron is included as both a dev and production dependency.

npm WARN The package lib is included as both a dev and production dependency.

npm WARN The package nodobjc is included as both a dev and production dependency.

npm WARN The package ZoomSDK is included as both a dev and production dependency.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! ffi@2.3.0 install: node-gyp rebuild

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the ffi@2.3.0 install script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


#18

This error due to your node.js version doesn’t match. Try version v7.10.1.


#19

finally,reinstall node v7.10.1,and demo works!
thanks again


#20

hello again,can i use electron-vue to write this?