# Watch command not triggering upload on change

**URL:** <https://community.hubspot.com/t/watch-command-not-triggering-upload-on-change/78547>\
**Category:** CMS Development\
**Tags:** local-development, enterprise\
**Created:** [April 1, 2023, 10:31pm UTC](https://community.hubspot.com/t/watch-command-not-triggering-upload-on-change/78547 "2023-04-01T22:31:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saggin](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@saggin](https://community.hubspot.com/u/saggin)\
**Post date:** [April 1, 2023, 10:31pm UTC](https://community.hubspot.com/t/watch-command-not-triggering-upload-on-change/78547/1 "2023-04-01T22:31:23Z")

</div>

Hi,

When I run hs watch command with **--initial-upload** it works fine, but when I change something it is not triggering the upload of the changed file. It was working but suddenly it stops working, I tried to upgrade do the latest version (4.1.7) but it didn’t solve.

Has anyone had this problem?

---

<div class="post-metadata">

**Author:** ![saggin](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@saggin](https://community.hubspot.com/u/saggin)\
**Post date:** [April 2, 2023, 12:05am UTC](https://community.hubspot.com/t/watch-command-not-triggering-upload-on-change/78547/2 "2023-04-02T00:05:22Z")

</div>

If anyone is struggled with that problem and are using yarn as the package manager. To solve the problem I completely removed all global packages and installed them again and it worked fine.
