function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nikita Yadav 17Nikita 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.
Best Answer chosen by Nikita Yadav 17
Nikita Yadav 17Nikita Yadav 17
Got solution Change in package.json
change line "prettier-plugin-apex": "^1.10.1" to "prettier-plugin-apex": "^1.10.0"

All Answers

SwethaSwetha (Salesforce Developers) 
HI Nikita,
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
Nikita Yadav 17Nikita Yadav 17
Got solution Change in package.json
change line "prettier-plugin-apex": "^1.10.1" to "prettier-plugin-apex": "^1.10.0"
This was selected as the best answer