You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NPM throws error while installing prettier using the npm install --save-dev --save-exact prettier prettier-plugin-apex in a new SFDX project.
Steps To Reproduce:
Create a new project with manifest.
Run the npm install --save-dev --save-exact prettier prettier-plugin-apex command in the terminal.
Expected result
The prettier module for apex should get installed successfully.
Actual result
Running the command throws an error.
Additional information
Workaround I do to fix this
To fix this, I navigate to the package.json file in the project and change the prettier-plugin-apex version from 1.10.1 to 1.10.0 and run the npm command again and the command runs successfully.
Salesforce Extension Version in VS Code: Salesforce Extension Pack (Expanded)
v54.2.0
Summary
NPM throws error while installing prettier using the
npm install --save-dev --save-exact prettier prettier-plugin-apex
in a new SFDX project.Steps To Reproduce:
npm install --save-dev --save-exact prettier prettier-plugin-apex
command in the terminal.Expected result
The prettier module for apex should get installed successfully.
Actual result
Running the command throws an error.
Additional information
Workaround I do to fix this
To fix this, I navigate to the package.json file in the project and change the
prettier-plugin-apex
version from 1.10.1 to 1.10.0 and run the npm command again and the command runs successfully.Salesforce Extension Version in VS Code: Salesforce Extension Pack (Expanded)
v54.2.0
SFDX CLI Version: sfdx-cli/7.137.1 win32-x64 node-v16.13.2
OS and version: Windows 11 Version 10.0.22000.493
The text was updated successfully, but these errors were encountered: