aw1875 / puppeteer-hcaptcha

A library to solve hcaptcha challenges that are automated within puppeteer. You can automatically set response values where they should be so the only thing left for you is submitting the page or you can get the response token.
https://www.npmjs.com/package/puppeteer-hcaptcha
137 stars 38 forks source link

Not able to install #43

Closed vap999793 closed 2 years ago

vap999793 commented 2 years ago

Hi,

`npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm ERR! code 1 npm ERR! git dep preparation failed npm ERR! command C:\Program Files\nodejs\node.exe C:\Users\VISHAL ANAND\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\VISHAL ANAND\AppData\Local\npm-cache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run npm ERR! > ghost-cursor@1.1.7 prepare npm ERR! > husky install && yarn lint && yarn build npm ERR! npm WARN using --force Recommended protections disabled. npm ERR! .git can't be found (see https://git.io/Jc3F9) npm ERR! npm ERR! code 1 npm ERR! npm ERR! path C:\Users\VISHAL ANAND\AppData\Local\npm-cache_cacache\tmp\git-cloneKtL5qP npm ERR! npm ERR! command failed npm ERR! npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c husky install && yarn lint && yarn build npm ERR! npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! npm ERR! C:\Users\VISHAL ANAND\AppData\Local\npm-cache_logs\2022-02-03T08_52_25_351Z-debug-0.log

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\VISHAL ANAND\AppData\Local\npm-cache_logs\2022-02-03T08_51_55_111Z-debug-0.log`

Getting deprecated error but it is also not installing the package. I am getting this error every time.

almadrasa commented 2 years ago

image

same issue

sshehab1 commented 2 years ago

install yarn and try again npm install --global yarn

sshehab1 commented 2 years ago

my issue is with the library related to libtensorflow [==============================] 1655247/bps 100% 0.0s

almadrasa commented 2 years ago

package installed but when trying to require it : image

vap999793 commented 2 years ago

install yarn and try again npm install --global yarn

Still not able to install the package after install yarn

aw1875 commented 2 years ago

What version of node are you running? What version of npm are you running/what version of yarn are you running?

vap999793 commented 2 years ago

npm version - 8.3.1 node version - v16.13.1 yarn version - 1.22.17

aw1875 commented 2 years ago

Let me try on a few different computers and see if I'm having the same issue.

Bogdan1001 commented 2 years ago

npm version - 8.3.1 node version - v16.13.1 yarn version - 1.22.17

I'd the same error all work after I've updated node to 16.14.0,

timbru31 commented 2 years ago

This is being caused because you depend on ghost-cursor git installation vs. the npm release.
Depending on the git install will cause the (for development purposes meant) prepare hook to run, too.

vap999793 commented 2 years ago

npm version - 8.3.1 node version - v16.13.1 yarn version - 1.22.17

I'd the same error all work after I've updated node to 16.14.0,

Still getting the same error.

You should try to create a new build by removing all the deprecated packages.

Revadike commented 2 years ago

install yarn and try again npm install --global yarn

I had the same error, and after this I'm getting:

npm ERR! npm ERR! command failed npm ERR! npm ERR! command C:\Windows\system32\cmd.exe /d /s /c husky install && yarn lint && yarn build npm ERR! npm ERR! yarn run v1.22.17 npm ERR! npm ERR! $ yarn ts-standard --fix npm ERR! npm ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. npm ERR! npm ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. npm ERR! npm ERR! fatal: not a git repository (or any of the parent directories): .git npm ERR! npm ERR! warning ............\package.json: No license field npm ERR! npm ERR! warning ............\package.json: No license field npm ERR! npm ERR! error Command "ts-standard" not found. npm ERR! npm ERR! error Command failed with exit code 1.

Revadike commented 2 years ago

For now, I'll use puppeteer-hcaptcha@4.1.2.

Revadike commented 2 years ago

I can confirm that the latest update fixes this issue.

aw1875 commented 2 years ago

I will be closing this issue later today if nobody else still has the issue.

vap999793 commented 2 years ago

I am able to install it but it is not able to solve the captcha, neither I am getting the token.

I have used both the codes to solve the captcha and to get the token

Revadike commented 2 years ago

both the codes?

vap999793 commented 2 years ago

both the codes?

to set the response value and to get the token

Revadike commented 2 years ago

I don't understand your comment

aw1875 commented 2 years ago

I understand. You're saying that you tried both manually returning the response token and automatically setting it and neither work. What website are you trying to work with and have you walked through the code with a debugger to see exactly what is happening?

aw1875 commented 2 years ago

Haven't heard anything about this for a few months so will be closing this issue. You can open a new issue if there is anything I can fix on my end.