testdotai / appium-classifier-plugin

Apache License 2.0
259 stars 78 forks source link

Error while installing the plugin : Error: test-ai-classifier@4.0.2 postinstall: `node ./postinstall.js` #46

Open mayankGulati8 opened 4 years ago

mayankGulati8 commented 4 years ago

Could you please help me in the same . I am pasting snippet of logs along with the attached debug log if needed for reference.

Terminal logs:

protobufjs@6.10.1 postinstall /usr/local/lib/node_modules/test-ai-classifier/node_modules/protobufjs node scripts/postinstall

test-ai-classifier@4.0.2 postinstall /usr/local/lib/node_modules/test-ai-classifier node ./postinstall.js

/usr/local/lib/node_modules/test-ai-classifier/node_modules/bluebird/js/release/promisify.js:270 throw new TypeError("expecting a function but got " + util.classString(fn)); ^ TypeError: expecting a function but got [object Undefined] at Function.promisify (/usr/local/lib/node_modules/test-ai-classifier/node_modules/bluebird/js/release/promisify.js:270:15) at Object. (/usr/local/lib/node_modules/test-ai-classifier/node_modules/appium-support/lib/zip.js:17:20) at Module._compile (internal/modules/cjs/loader.js:654:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10) at Module.load (internal/modules/cjs/loader.js:566:32) at tryModuleLoad (internal/modules/cjs/loader.js:506:12) at Function.Module._load (internal/modules/cjs/loader.js:498:3) at Module.require (internal/modules/cjs/loader.js:598:17) at require (internal/modules/cjs/helpers.js:11:18) at Object. (/usr/local/lib/node_modules/test-ai-classifier/node_modules/appium-support/index.js:10:1) at Module._compile (internal/modules/cjs/loader.js:654:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10) at Module.load (internal/modules/cjs/loader.js:566:32) at tryModuleLoad (internal/modules/cjs/loader.js:506:12) at Function.Module._load (internal/modules/cjs/loader.js:498:3) at Module.require (internal/modules/cjs/loader.js:598:17) at require (internal/modules/cjs/helpers.js:11:18) at Object. (/usr/local/lib/node_modules/test-ai-classifier/lib/download.js:3:1) at Module._compile (internal/modules/cjs/loader.js:654:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10) at Module.load (internal/modules/cjs/loader.js:566:32) at tryModuleLoad (internal/modules/cjs/loader.js:506:12) npm WARN ws@7.3.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself. npm WARN ws@7.3.1 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! test-ai-classifier@4.0.2 postinstall: node ./postinstall.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the test-ai-classifier@4.0.2 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

╭──────────────────────────────────────╮ │ │ │ Update available 5.6.0 → 6.14.8 │ │ Run npm i npm to update │ │ │ ╰──────────────────────────────────────╯

npm ERR! A complete log of this run can be found in: npm ERR! /Users/mobilitypractice/.npm/_logs/2020-08-19T18_30_37_225Z-debug.log 2020-08-19T18_30_37_225Z-debug.log