[SalesForce] Warning: force:lightning:lwc:start is not a sfdx command

I am trying to use the new LWC Local Development Server.

I've run command:

sfdx update

So I know I am using the latest version of the CLI.

And I've installed the plugin:

sfdx plugins:install @salesforce/lwc-dev-server

And it seems to install fine:

Successfully validated digital signature for
@salesforce/lwc-dev-server. Finished digital signature check.
Installing plugin @salesforce/lwc-dev-server…

And then I authorised a Sandbox org.

But when I run the command to start the server:

sfdx force:lightning:lwc:start

I this this:

» Warning: force:lightning:lwc:start is not a sfdx command.
Did you mean force:lightning:lint? [y/n]:

When I run this command:

sfdx plugins

I get a result of:

no plugins installed

Questions

  1. Any ideas what I am doing wrong?
  2. How can I fix it / get it working?

Best Answer

You must use a Scratch org not a standard Sandbox.

System Requirements

Developer Hub-enabled org
Most recent stable version of Chrome, Firefox, Safari, or Edge web browser
Windows—Windows 7 (64-bit and 32-bit) or later
Mac—macOS 10.11 or later
Linux—Ubuntu 14.0.4 or later
Salesforce CLI

Reference

Related Topic