Hi,
I get the following error (see below) when trying to install the hubspot CLI. Using Mac, zsh, and nvm. What can I do to solve this permission issue?
When running ls -la, I can see that I am the owner of the node_modules folder as well as the @hubspot-folder, not root.
Could the issue be caused because I first tried running the npm install @hubspot-command with bash in the terminal, but then changed back to zsh? Is there any way to remove the @hubspot-folder in node_modules/uninstall hubspot cli to be able to try again from scratch?
Would be really greatful for some guidance on how to solve this🙏
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/@hubspot
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir ‘/usr/local/lib/node_modules/@hubspot’
npm ERR! [Error: EACCES: permission denied, mkdir ‘/usr/local/lib/node_modules/@hubspot’] {
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘mkdir’,
npm ERR! path: ‘/usr/local/lib/node_modules/@hubspot’
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.