You need to sign in to do that
Don't have an account?
Srinivas Nimmagadda
Error : " Installing plugin @salesforce/lwc-dev-server... ! " when installing in my Visual Studio in Windows
I was trying to install the local Dev Server and when I execute this command it is throwing an error.
C:\Users\Desktop\Salesforce> sfdx plugins:install @salesforce/lwc-dev-server This plugin is not digitally signed and its authenticity cannot be verified. Continue installation y/n?: y Finished digital signature check. error An unexpected error occurred: "https://registry.yarnpkg.com/@salesforce%2flwc-dev-server: self signed certificate in certificate chain". Installing plugin @salesforce/lwc-dev-server... ! Error: yarn add @salesforce/lwc-dev-server@latest --non-interactive --mutex=file:C:/Users/p2764490/AppData/Local/sfdx/yarn.lock --preferred-cache-folder=C:/Users/p2764490/AppData/Local/sfdx/yarn --check-files exited with code 1 at ChildProcess.<anonymous> (C:/Program Files/Salesforce CLI/client/node_modules/@oclif/plugin-plugins/lib/yarn.js:31:28)
You can try the fix based on official DX doc:
Create a plugin whitelist file named unsignedPluginWhiteList.json in the config directory with the following content:
Move the whitelist file in a specific directory before running the plugin install command:
1. Installation of Nodejs software and disconnect from office network VPN (if connected).
2. >Install node gyp by running
npm install -g node-gyp
>In command prompt or whatever command-line interface you use.
3. And then after that, you can run
npm install --global --production windows-build-tools
4. And finally tried the below command it worked after 2 3 times..
sfdx plugins:install @salesforce/lwc-dev-server
Thank you...! it's working
very clear steps
I got it resolvd this issue. Here is what it worked for me:
1. Installation of Nodejs software and disconnect from office network VPN (if connected).
2. >Install node gyp by running
npm install -g node-gyp
>In command prompt or whatever command-line interface you use.
3. And then after that, you can run
npm install --global --production windows-build-tools
4. And finally tried the below command it worked after 2 3 times..
sfdx plugins:install @salesforce/lwc-dev-server
its really work in my mac.
Kindly help
Installing plugin @salesforce/lwc-dev-server... failed
Error: yarn add @salesforce/lwc-dev-server@latest --non-interactive --mutex=file:C:\Users\Prashanth
R\AppData\Local\sfdx\yarn.lock --preferred-cache-folder=C:\Users\Prashanth R\AppData\Local\sfdx\yarn --check-files
exited with code 1
then install. it worked for me!
- run 'npm install -g node-gyp' in command prompt
- Install the current version of Python from the Microsoft Store package(I installed 3.10.8 from https://www.python.org/downloads/release/python-3108/)
- Install Visual C++ Build Environment: Visual Studio Build Tools (using "Visual C++ build tools" workload) or Visual Studio Community (using the "Desktop development with C++" workload)
- Launch cmd, npm config set msvs_version 2017
- now try to run ' sfdx plugins:install @salesforce/lwc-dev-server'
Hope this helpssudo npm install -g node-gyp
and then
sfdx plugins:install @salesforce/lwc-dev-server