Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

localPath #25

Open
aaalsubaie opened this issue Aug 16, 2018 · 4 comments
Open

localPath #25

aaalsubaie opened this issue Aug 16, 2018 · 4 comments

Comments

@aaalsubaie
Copy link

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)

@felixjung
Copy link

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
Copy link

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.

@qtiki
Copy link

qtiki commented Aug 28, 2018

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]

@uccmen
Copy link

uccmen commented Apr 24, 2019

@qtiki - that's exactly what I did as well - 99x/serverless-dynamodb-local#210 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants