puppeteer-extra icon indicating copy to clipboard operation
puppeteer-extra copied to clipboard

[Bug] npm ERR! code ETARGET

Open xavruss opened this issue 3 years ago • 7 comments

to install get message :

npm ERR! code ETARGET
npm ERR! notarget No matching version found for automation-extra-plugin@^4.2.1.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:

xavruss avatar May 25 '21 18:05 xavruss

same issue, is there any workaround?

fcpunk avatar Dec 01 '21 00:12 fcpunk

https://github.com/berstend/puppeteer-extra/issues/454

MicrochipQ avatar Jan 13 '22 22:01 MicrochipQ

Can't get pass that error as well. @MicrochipQ what's the workaround? #454 is quite a long thread.

npm install playwright playwright-extra @extra/humanize

npm ERR! code ETARGET
npm ERR! notarget No matching version found for automation-extra-plugin@^4.2.1.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

zeglin avatar Oct 19 '22 20:10 zeglin

Use yarn

RafaelKuhn1212 avatar Jan 18 '23 12:01 RafaelKuhn1212

Use yarn

But it's the same issue with yarn:

yarn add @extra/humanize

➤ YN0000: ┌ Resolution step
➤ YN0061: │ request@npm:2.88.2 is deprecated: request has been deprecated, see https://github.com/request/request/issues/3142
➤ YN0061: │ har-validator@npm:5.1.5 is deprecated: this library is no longer supported
➤ YN0061: │ uuid@npm:3.4.0 is deprecated: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
➤ YN0001: │ Error: automation-extra-plugin@npm:^4.2.1: No candidates found
    at ge (C:\Users\Resource1\AppData\Local\node\corepack\yarn\3.4.1\yarn.js:439:7784)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.allSettled (index 1)
    at async $s (C:\Users\Resource1\AppData\Local\node\corepack\yarn\3.4.1\yarn.js:390:10398)
➤ YN0000: └ Completed in 1s 444ms
➤ YN0000: Failed with errors in 1s 445ms

and after all packages upgrade:

yarn add @extra/humanize

➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: automation-extra-plugin@npm:^4.2.1: No candidates found
    at ge (C:\Users\Resource1\AppData\Local\node\corepack\yarn\3.4.1\yarn.js:439:7784)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.allSettled (index 1)
    at async $s (C:\Users\Resource1\AppData\Local\node\corepack\yarn\3.4.1\yarn.js:390:10398)
➤ YN0000: └ Completed in 0s 777ms
➤ YN0000: Failed with errors in 0s 780ms

Tavel avatar Mar 14 '23 11:03 Tavel

Seems like the package-lock is looking for version ^4.2.1 however, the version has a suffix 4.2.1**-next.587** https://www.npmjs.com/package/automation-extra-plugin?activeTab=versions

Luen avatar Mar 21 '23 01:03 Luen

Use yarn

But it's the same issue with yarn:

yarn add @extra/humanize

➤ YN0000: ┌ Resolution step
➤ YN0061: │ request@npm:2.88.2 is deprecated: request has been deprecated, see https://github.com/request/request/issues/3142
➤ YN0061: │ har-validator@npm:5.1.5 is deprecated: this library is no longer supported
➤ YN0061: │ uuid@npm:3.4.0 is deprecated: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
➤ YN0001: │ Error: automation-extra-plugin@npm:^4.2.1: No candidates found
    at ge (C:\Users\Resource1\AppData\Local\node\corepack\yarn\3.4.1\yarn.js:439:7784)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.allSettled (index 1)
    at async $s (C:\Users\Resource1\AppData\Local\node\corepack\yarn\3.4.1\yarn.js:390:10398)
➤ YN0000: └ Completed in 1s 444ms
➤ YN0000: Failed with errors in 1s 445ms

and after all packages upgrade:

yarn add @extra/humanize

➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: automation-extra-plugin@npm:^4.2.1: No candidates found
    at ge (C:\Users\Resource1\AppData\Local\node\corepack\yarn\3.4.1\yarn.js:439:7784)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.allSettled (index 1)
    at async $s (C:\Users\Resource1\AppData\Local\node\corepack\yarn\3.4.1\yarn.js:390:10398)
➤ YN0000: └ Completed in 0s 777ms
➤ YN0000: Failed with errors in 0s 780ms

Actually I solved this by using this command: yarn add @extra/[email protected]

Tavel avatar Mar 22 '23 10:03 Tavel