tvarchive / optimusTemplate

This is a cucumber jvm implementation template using the optimus mobile automation framework. If you like it, star it, help spread the word.
http://docs.testvagrant.com
66 stars 23 forks source link

Error while trying to install optimus-cli with node v10.7.0 #34

Closed sarathsp23 closed 6 years ago

sarathsp23 commented 6 years ago

I am getting errors while trying to install the optimus-cli with the latest node v 10.7.0

Please find the attached error optimusLog.txt

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 ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12) gyp ERR! System Darwin 17.7.0 gyp ERR! command "/usr/local/Cellar/node/10.7.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/local/lib/node_modules/optimus-cli/node_modules/nodegit/build/Release/nodegit.node" "--module_name=nodegit" "--module_path=/usr/local/lib/node_modules/optimus-cli/node_modules/nodegit/build/Release" gyp ERR! cwd /usr/local/lib/node_modules/optimus-cli/node_modules/nodegit gyp ERR! node -v v10.7.0 gyp ERR! node-gyp -v v3.7.0 gyp ERR! not ok [nodegit] ERROR - Could not finish install [nodegit] ERROR - finished with error code: 1

KrishnB commented 6 years ago

Hi @sarathsp23 one of the optimus-cli dependency nodegit is not compatible with node v10.x, suggest you to downgrade it to 9 for smooth installation.

sarathsp23 commented 6 years ago

Thanks KrishnB , I downgraded the node to v9 and i was able to install optimus-cli

sarathsp23 commented 4 years ago

@KrishnB @sukesh15 Hi ,can I upgrade the node version once I have installed optimus-cli? For appiu, 1.15.0 , i need to update node to latest, else I cannot execute my test because of the error for Path not being string

thenishant commented 4 years ago

hey @sarathsp23 Once you have installed optimus-cli, you can always upgrade the node to the latest version.

sarathsp23 commented 4 years ago

@thenishant Thanks , will do that then