RMko
RMko
DDeno
Created by RMko on 3/18/2024 in #help
PermissionDenied while using ioredis npm package
Hello, I'm facing an issue with an npm library ioredis (https://github.com/redis/ioredis). For some reason, when I tried to initialize a new Redis client using this package, I received an error: error: Uncaught PermissionDenied: Requires env access, run again with the --allow-env flag. No exact env variable is specified in the log. Yes, it works when I allow env globally, but for my system, I would like to avoid allowing all env variables. So, the question is, how can I check which env variables are accessed by this package, if any? How can I debug this issue and what should i put as allow env ?
7 replies