HubSpot CMS CLI install fail

New Member


I am having trouble installing the Hubspot CMS CLI because of permission issues. Anyone got an idea why it fails, and what to do about it?

Jakobs-AirSmiley Very Happyocuments jakobthuemoes$ npm install -g @hubspot/cms-cli
npm WARN deprecated request@2.88.2: request has been deprecated, see
npm WARN deprecated urix@0.1.0: Please see
npm WARN deprecated resolve-url@0.2.1:
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!  [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules'
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.


1 Reply 1
Advisor | Elite Partner

Hey @Jayrocket ,

As the error says : does your user account have writeable permissions to the file? Or do you have your software (command prompt, code editor) opened as an administrator? 

Alyssa Wilie

Web Developer at LyntonWeb

If this answer solved your question, please mark it as the solution!