question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows: Serverless command "dynamodb install" not found.

See original GitHub issue

Actual Behaviour

sls dynamodb install yields:

>sls dynamodb install
Serverless: Running "serverless" installed locally (in service node_modules)

  Serverless Error ---------------------------------------

  Serverless command "dynamodb install" not found. Run "serverless help" for a list of all available commands.

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information ---------------------------
     Operating System:          win32
     Node Version:              15.8.0
     Framework Version:         1.71.3
     Plugin Version:            3.8.4
     SDK Version:               2.3.2
     Components Version:        2.30.11

I have installed serverless-dynamodb-local plugin, and serverless help shows it:

>serverless help
Serverless: Running "serverless" installed locally (in service node_modules)

Commands
* You can run commands with "serverless" or the shortcut "sls"
* Pass "--verbose" to this command to get in-depth plugin info
* Pass "--no-color" to disable CLI colors
* Pass "--help" after any <command> for contextual help

Interactive Quickstart
* Run serverless (or shortcut sls) without any arguments to initialize an interactive setup
  of functionalities related to given service or current environment
* Pass "--help-interactive" for contextual help on interactive CLI options

Framework
* Documentation: http://slss.io/docs

Environment Variables
* Set SLS_DEBUG=* to see debugging logs
* Set SLS_WARNING_DISABLE=* to hide warnings from the output
* Set SLS_MAX_CONCURRENT_ARTIFACTS_UPLOADS to control the maximum S3 upload SDK requests that are sent in parallel during the deployment of the service's artifacts. The default is 3. Note: increasing this too high might, actually, downgrade the overall upload speed

config ........................ Configure Serverless
config credentials ............ Configures a new provider profile for the Serverless Framework
create ........................ Create new Serverless service
install ....................... Install a Serverless service from GitHub or a plugin from the Serverless registry
package ....................... Packages a Serverless service
deploy ........................ Deploy a Serverless service
deploy function ............... Deploy a single function from the service
deploy list ................... List deployed version of your Serverless Service
deploy list functions ......... List all the deployed functions and their versions
invoke ........................ Invoke a deployed function
invoke local .................. Invoke function locally
info .......................... Display information about the service
logs .......................... Output the logs of a deployed function
metrics ....................... Show metrics for a specific function
print ......................... Print your compiled and resolved config file
remove ........................ Remove Serverless service and all resources
rollback ...................... Rollback the Serverless service to a specific deployment
rollback function ............. Rollback the function to a specific version
slstats ....................... Enable or disable stats
plugin ........................ Plugin management for Serverless
plugin install ................ Install and add a plugin to your service
plugin uninstall .............. Uninstall and remove a plugin from your service
plugin list ................... Lists all available plugins
plugin search ................. Search for plugins
s3deploy ...................... Deploy assets to S3 bucket
requirements .................. Serverless plugin to bundle Python packages
requirements clean ............ Remove .requirements and requirements.zip
requirements install .......... install requirements manually
requirements cleanCache ....... Removes all items in the pip download/static cache (if present)
client ........................ Generate and deploy clients
client deploy ................. Deploy serverless client code
client remove ................. Removes deployed files and bucket
dynamodb ...................... undefined
dynamodb migrate .............. Creates local DynamoDB tables from the current Serverless configuration
dynamodb seed ................. Seeds local DynamoDB tables with data
dynamodb start ................ Starts local DynamoDB
dynamodb remove ............... Removes local DynamoDB
dynamodb install .............. Installs local DynamoDB
offline ....................... Simulates API Gateway to call your lambda functions offline.
offline start ................. Simulates API Gateway to call your lambda functions offline using backward compatible initialization.
login ......................... Login or sign up for Serverless
logout ........................ Logout from Serverless
generate-event ................ Generate event
test .......................... Run HTTP tests
dashboard ..................... Open the Serverless dashboard
output ........................
output get .................... Get value of dashboard deployment profile parameter
output list ................... List all dashboard deployment profile parameters
param .........................
param get ..................... Get value of dashboard service output
param list .................... List all dashboard service outputs
studio ........................ Develop a Serverless application in the cloud.

Plugins
Assets, AwsCommon, AwsCompileAlbEvents, AwsCompileAlexaSkillEvents, AwsCompileAlexaSmartHomeEvents, AwsCompileApigEvents, AwsCompileCloudFrontEvents, AwsCompileCloudWatchEventEvents, AwsCompileCloudWatchLogEvents, AwsCompileCognitoUserPoolEvents, AwsCompileEventBridgeEvents, AwsCompileFunctions, AwsCompileIoTEvents, AwsCompileLayers, AwsCompileS3Events, AwsCompileSNSEvents, AwsCompileSQSEvents, AwsCompileScheduledEvents, AwsCompileStreamEvents, AwsCompileWebsockets, AwsConfigCredentials, AwsDeploy, AwsDeployFunction, AwsDeployList, AwsInfo, AwsInvoke, AwsInvokeLocal, AwsLogs, AwsMetrics, AwsPackage, AwsProvider, AwsRemove, AwsRollback, AwsRollbackFunction, Config, Create, Deploy, Executable, HttpApiEvents, Info, Install, InteractiveCli, Invoke, Logs, Metrics, Package, Plugin, PluginInstall, PluginList, PluginSearch, PluginUninstall, Print, Remove, Rollback, ServerlessDynamodbLocal, ServerlessEnterprisePlugin, ServerlessFullstackPlugin, ServerlessOffline, ServerlessPythonRequirements, SlStats

Expected Behaviour

DynamoDB installs.

Tried workarounds

Here’s a similar issue and the solution was to install local dynamodb like this:

serverless plugin install --name serverless-dynamodb-local

I tried that too, but it didn’t help. I see serverless-dynamodb-local in local node_modules:

image

Environment

This is Windows 10, my path is:

C:\Users\eduard\AppData\Local\Programs\Python\Python38;C:\Users\eduard\AppData\Local\Programs\Python\Python38\Scripts\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Amazon\AWSCLIV2\;C:\Program Files\nodejs\;C:\Users\eduard\AppData\Roaming\npm\;C:\temp\fhirsvcs\portal\node_modules\.bin;C:\temp\fhirsvcs\portal

And relevant part of serverless.yml:

plugins:
  - serverless-s3-deploy
  - serverless-python-requirements
  - fullstack-serverless
  - serverless-dynamodb-local
  - serverless-offline

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
majindagetacommented, Jul 7, 2021

I had the same issue and was a trivial answer: https://github.com/serverless/serverless/issues/5426#issuecomment-875375338 just rename the yml file to “serverless.yml”

1reaction
eduard93commented, Apr 14, 2021

Plugin also must be installed globally:

npm install -g serverless-dynamodb-local
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] sls dynamodb install not working - Dynobase
Run "serverless help" for a list of all available commands. is pretty known problem. This error originates from serverless-dynamodb-local Serverless' Framework ...
Read more >
node.js - Serverless framework won't start with dynamodb local
You can check wether you have successfully installed the plugin by running the serverless command line: serverless.
Read more >
Serverless Dynamodb Local Plugin
Install DynamoDB Local (unless using docker setup, see below) sls dynamodb install ... To stop DynamoDB, type Ctrl+C in the command prompt window)....
Read more >
ServerlessError: Serverless command “dynamodb” not found.
ServerlessError : Serverless command “dynamodb” not found.” is published by Juan Carlos Lozano C. ... serverless dynamodb install.
Read more >
serverless-dynamodb-local - npm
This Serverless 0.5.x plugin help you to setup dynamodb local instance with ... To stop DynamoDB, type Ctrl+C in the command prompt window....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found