# "npm warn deprecated" when executing "npm install -g @hubspot/cli"

**URL:** <https://community.hubspot.com/t/npm-warn-deprecated-when-executing-npm-install-g-hubspot-cli/86181>\
**Category:** CMS Development\
**Tags:** local-development\
**Created:** [July 26, 2023, 2:27pm UTC](https://community.hubspot.com/t/npm-warn-deprecated-when-executing-npm-install-g-hubspot-cli/86181 "2023-07-26T14:27:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AzharBondi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/azharbondi/32/89457_2.png) [@AzharBondi](https://community.hubspot.com/u/AzharBondi)\
**Post date:** [July 26, 2023, 2:27pm UTC](https://community.hubspot.com/t/npm-warn-deprecated-when-executing-npm-install-g-hubspot-cli/86181/1 "2023-07-26T14:27:42Z")

</div>

Hi guys!  
I am receiving these warning every time I run this command :  
**npm install -g @hubspot/cli**  
I even tried running this command :  
**npm install -g @hubspot/cli@latest**

 ![npm Warn deprecated.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/2/825480329619ef611dd2a18b546c1afebdc4b522.png)  
npm warn deprecated  
I also tried running : npm update  
\> result : creation of “package-lock.json” file \> empty like shown below

 ![empty json.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/2X/3/382869fdcbe6f29a82ffeb1fc98b6eecec7dee42.png)

Any clues on how to solve this ?  
Thanks!!
