dynamodb-localhost icon indicating copy to clipboard operation
dynamodb-localhost copied to clipboard

localPath

Open aaalsubaie opened this issue 7 years ago • 4 comments

installing new DyanamoDB does not add the local path in the path.

I have to assign localpath to "bin" in order to install the database.

[ '-Djava.library.path=/Users/aaalsubaie/Projects/propman-server/node_modules/dynamodb-localhost/dynamodb//bin/DynamoDBLocal_lib', '-jar', 'DynamoDBLocal.jar', '-port', 8000 ]

this might be the source of the problem: db_dir = utils.absPath(config.setup.install_path)

aaalsubaie avatar Aug 16 '18 05:08 aaalsubaie

I think this bug is actually fixed on the master branch. I was having a similar issue and fixed them inside the package in my node_modules folder. Later I saw that the master branch is already fixed, but no version has been released to npm.

felixjung avatar Aug 22 '18 18:08 felixjung

Actually, version 0.0.6 was just released, today. For me everything works as expected, now. I am using serverless-dynamodb-local, which depends on dynamodb-localhost. While serverless-dynamodb-local has not been updated to use version 0.0.6, I was able to force dependency resolution to this version via yarn's selective dependency resolution feature.

felixjung avatar Aug 22 '18 18:08 felixjung

Not sure if this is related but in our environment upgrading from version 0.0.5 to 0.0.6 actually breaks serverless-dynamodb-local plugin. It causes the serverless command to fail with Error: spawn java ENOENT.

Setting this to our package.json fixes the problem:

  "resolutions": {
    "dynamodb-localhost": "0.0.5"
  },

Other related package versions: [email protected] [email protected]

qtiki avatar Aug 28 '18 14:08 qtiki

@qtiki - that's exactly what I did as well - https://github.com/99xt/serverless-dynamodb-local/issues/210#issuecomment-486056382

uccmen avatar Apr 24 '19 03:04 uccmen