'error installing npm install @salesforce/sfdx-lwc-jest --save-dev
I'm unable to install this, Jest Testing Framework setup please help me with is issue
Terminal:->
PS C:\Users\Akhilesh\Documents\GitHub\test-lwc>
npm install @salesforce/sfdx-lwc-jest --save-dev
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.
npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\Akhilesh\AppData\Local\npm-cache_logs\2021-11-08T07_48_01_695Z-debug.log PS C:\Users\Akhilesh\Documents\GitHub\test-lwc>
Solution 1:[1]
edit your package.json file, change the line
"prettier-plugin-apex": "^1.10.1"
to
"prettier-plugin-apex": "^1.10.0"
Solution 2:[2]
RUN > npm install [email protected] After running this you will be able to successfully run
npm install @salesforce/sfdx-lwc-jest --save-dev
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Hassan ALAMI |
| Solution 2 | Akhilesh |
