Open eduard93 opened 3 years ago
Same on wsl2
Same in docker
root@ide:~# cd localsrc/
root@ide:~/localsrc# serverless plugin install --name serverless-dynamodb-local
Serverless: Running "serverless" installed locally (in service node_modules)
Serverless: Installing plugin "serverless-dynamodb-local@latest" (this might take a few seconds...)
Serverless: Successfully installed "serverless-dynamodb-local@latest"
root@ide:~/localsrc# 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: linux
Node Version: 15.14.0
Framework Version: 1.71.3
Plugin Version: 3.8.4
SDK Version: 2.3.2
Components Version: 2.30.11
root@ide:~/localsrc#
Looking for a solution as I am running into the same issue. Tried all the above as well with no luck yet.
Hey guys, I was having the exact same issue. What I had to do was downgrade my serverless version to an older version and then it worked for me. You don't have to go back this far but I did.
$ sudo npm install -g serverless@1.72.0 $ serverless -v
Framework Core: 1.72.0 Plugin: 3.8.4 SDK: 2.3.2 Components: 2.34.9
Plugin also must be installed globally:
npm install -g serverless-dynamodb-local
Also does not help on linux. Tried downgrade, local and global reinstall, no dice.
This package needs serverless 1.x version for sls dynamodb install command to work and Java Runtime Engine (JRE) version 6.x or newer so you can do: npm install -g serverless-dynamodb-local@1.67.0 or yarn global add serverless-dynamodb-local@1.67.0
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"
Actual Behaviour
sls dynamodb install
yields:I have installed
serverless-dynamodb-local
plugin, andserverless help
shows it:Expected Behaviour
DynamoDB installs.
Tried workarounds
Here's a similar issue and the solution was to install local dynamodb like this:
I tried that too, but it didn't help. I see serverless-dynamodb-local in local node_modules:
Environment
This is Windows 10, my path is:
And relevant part of
serverless.yml
: