You need to sign in to do that
Don't have an account?
Iago Silva
Local Development Server for Lightning Web Components
I'm trying to set a Local Development Server for Lightning Web Components according to this link but when I try to install the plugin @salesforce/lwc-dev-server I get this error message :
and a .js file named npm-cli.js opens in my editor with this content:
Anyone knows what to do? Thanks in advance.
Code: ShellParseError
and a .js file named npm-cli.js opens in my editor with this content:
#!/usr/bin/env node require('../lib/cli.js')(process)
Anyone knows what to do? Thanks in advance.
All Answers
https://developer.salesforce.com/tools/vscode/en/localdev/set-up-lwc-local-dev
Troubleshooting Tip: Due to a known issue, it’s likely you’ll see several errors when you install the plug-in. Run sfdx plugins --core to see if the plug-in is installed. If yes, try to start the Local Development server. If successful, you’re good to proceed.
You can follow below video link as well to set up.
https://www.youtube.com/watch?v=8eRFE4t2VyU
Thanks!
I run sfdx plugins --core and the lwc-dev-server plugin is not installed. I also followed the instructions shown in the video you mentioned but didn't work. It gives the same error when trying to install the plugin.
I run
and now I have the following error:
I don't know how but now I'm able to use local lwc development. I just tried again these days and now it works. Even so, thank you for your answers.