Hello, Below steps might fix the issue, I encountered this error because my sfdx was not up to date. Follow below step -
1. Open project directory and then open teriminal in VS Code or in command prompt. 2. In order to update sfdx use command - 'sfdx update'. 3. After the above command runs successfully, try installing dev server agai. Alternatively use command - 'sfdx plugins:install @salesforce/lwc-dev-server'. Thanks, Saurabh
https://www.sfdcstop.com/2021/07/error-while-installing-lwc-local-server.html
https://github.com/forcedotcom/lwc-dev-server-feedback/issues/3
Please mark as Best Answer if above information was helpful.
Thanks,
Below steps might fix the issue, I encountered this error because my sfdx was not up to date. Follow below step -
1. Open project directory and then open teriminal in VS Code or in command prompt.
2. In order to update sfdx use command - 'sfdx update'.
3. After the above command runs successfully, try installing dev server agai. Alternatively use command - 'sfdx plugins:install @salesforce/lwc-dev-server'.
Thanks,
Saurabh