You need to sign in to do that
Don't have an account?
Nikita Yadav 17
Not able to Install sfdx-lwc-jest Node Module
Hello,
I am solving below trailhead,
https://trailhead.salesforce.com/en/content/learn/modules/test-lightning-web-components/set-up-jest-testing-framework
when I try following command,
sfdx force:lightning:lwc:test:setup
I am getting this error,
npm ERR! code ETARGET
npm ERR! notarget No matching version found for prettier-plugin-apex@^1.10.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.
Note : All the command in above trailhead was successfully worked.
Please help me to solve this trail.
Thank u.
I am solving below trailhead,
https://trailhead.salesforce.com/en/content/learn/modules/test-lightning-web-components/set-up-jest-testing-framework
when I try following command,
sfdx force:lightning:lwc:test:setup
I am getting this error,
npm ERR! code ETARGET
npm ERR! notarget No matching version found for prettier-plugin-apex@^1.10.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.
Note : All the command in above trailhead was successfully worked.
Please help me to solve this trail.
Thank u.
change line "prettier-plugin-apex": "^1.10.1" to "prettier-plugin-apex": "^1.10.0"
All Answers
Please note that Questions about how to pass Trailhead challenges are not on topic, because these challenges are intended to be independent demonstrations of your abilities.
Trailhead Help (https://trailhead.salesforce.com/en/help?support=home)can provide assistance for situations where Trailhead does not appear to be functioning correctly. You can reach out to them if this is the case.
See related: https://github.com/npm/npm/issues/19534
Please close the thread by selecting as best answer. Thank you
change line "prettier-plugin-apex": "^1.10.1" to "prettier-plugin-apex": "^1.10.0"