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

CDK: Could not run version check due to error EACCES: permission denied, open '/usr/local/lib/node_modules/aws-cdk/lib/../.LAST_VERSION_CHECK' #2790

Closed
markusl opened this issue Jun 7, 2019 · 3 comments
Labels
bug This issue is a bug.

Comments

@markusl
Copy link
Contributor

markusl commented Jun 7, 2019

Describe the bug

When on a system which uses multiple user accounts, cdk synth may return an error with missing permissions to do LAST_VERSION_CHECK

Could not run version check due to error EACCES: permission denied, open '/usr/local/lib/node_modules/aws-cdk/lib/../.LAST_VERSION_CHECK'

To Reproduce

On account A:

$ npm i -g aws-cdk

On account B:

$ cdk synth

Expected behavior
CDK Synth would work normally

Version:

  • OS: Macbook
  • Programming Language: Typescript
  • CDK Version: 0.33.0
@markusl markusl added the bug This issue is a bug. label Jun 7, 2019
@RomainMuller
Copy link
Contributor

Hey @markusl - just to make sure... Is this failing for you?
In principle, this message should only be a warning...

I still think this is a bug (putting the timestamp file in a possibly read-only location isn't so great), but if that is just a warning, the urgency of fixing this is a little lower 😅

@markusl
Copy link
Contributor Author

markusl commented Jun 7, 2019

@RomainMuller now that you asked, it seems to be a warning only, but I was a little bit confused as it looked like an error to me :)

@rix0rrr
Copy link
Contributor

rix0rrr commented Jun 12, 2019

Fixed by #2774

@rix0rrr rix0rrr closed this as completed Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants