when tried to install dependencies it’s showing errors:
nstalling Appium…
npm error code EACCES
npm error syscall rename
npm error path /Users/aljohara/.npm-global/lib/node_modules/appium
npm error dest /Users/aljohara/.npm-global/lib/node_modules/.appium-YrdEsnh3
npm error errno -13
npm error
npm error Your cache folder contains root-owned files, due to a bug in
npm error previous versions of npm which has since been addressed.
npm error
npm error To permanently fix this problem, please run:
npm error sudo chown -R 501:20 “/Users/aljohara/.npm”
npm error A complete log of this run can be found in: /Users/aljohara/.npm/_logs/2024-09-14T15_09_50_386Z-debug-0.log
Failed to run the installation step: “Installing Appium…”.
Failed to run the installation command.
Any idea regarding the issue ?