HubSpot CMS CLI install fail

Highlighted
New Member

Hi

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 https://github.com/request/request/issues/3142
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
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.

 

Reply
0 Upvotes
1 Reply 1
Highlighted
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?

 

https://www.itechtics.com/run-programs-administrator/ 

Alyssa Wilie

Web Developer at LyntonWeb

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

Reply
0 Upvotes