# Exclude node\_modules from Import

**URL:** https://community.kinsta.com/t/exclude-node-modules-from-import/227
**Category:** Feature Requests
**Created:** [January 23, 2021, 2:38pm UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227 "2021-01-23T14:38:32Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![ZachTheHack](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/zachthehack/32/161_2.png) [@ZachTheHack](https://community.kinsta.com/u/ZachTheHack)
#### Post date: [January 23, 2021, 2:38pm UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/1 "2021-01-23T14:38:32Z")

</div>

Is there a way to exclude certain files from being uploaded? Like when I’m developing locally, then wanna push it to staging, I don’t want node\_modules to get uploaded too.

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [January 25, 2021, 4:04pm UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/2 "2021-01-25T16:04:57Z")

</div>

Hi @ZachTheHack . Welcome to DevKinsta! I’m afraid not at this time but this makes for a great feature request. I’ve gone ahead and moved this over to the featured requests category here.

---

<div class="post-metadata">

### Author: ![mariusboe](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@mariusboe](https://community.kinsta.com/u/mariusboe)
#### Post date: [March 19, 2021, 3:41pm UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/3 "2021-03-19T15:41:52Z")

</div>

Our templates are using alot of gulp and other stuff to minimize SASS, it would be perfect to ignore the folder node\_modules, but keep files like package.json when uploading to staging

---

<div class="post-metadata">

### Author: ![ZachTheHack](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/zachthehack/32/161_2.png) [@ZachTheHack](https://community.kinsta.com/u/ZachTheHack)
#### Post date: [May 1, 2021, 8:00am UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/4 "2021-05-01T08:00:08Z")

</div>

I know Local by FlyWheel has this feature. Looking forward for it to be implemented in DevKinsta 🙂

---

<div class="post-metadata">

### Author: ![Martin\_Cao](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/martin_cao/32/494_2.png) [@Martin\_Cao](https://community.kinsta.com/u/Martin_Cao)
#### Post date: [May 11, 2021, 11:58pm UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/5 "2021-05-11T23:58:06Z")

</div>

+1 for this feature. It would be great if we could create a .kinstaignore file that uses .gitignore syntax for this.

---

<div class="post-metadata">

### Author: ![deadband](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/deadband/32/742_2.png) [@deadband](https://community.kinsta.com/u/deadband)
#### Post date: [October 15, 2021, 5:38pm UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/6 "2021-10-15T17:38:10Z")

</div>

100% agree, the ability to ignore development related files would be a very welcome feature. I like @Martin_Cao idea of using an ignore file.

---

<div class="post-metadata">

### Author: ![isaklafleur](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/isaklafleur/32/790_2.png) [@isaklafleur](https://community.kinsta.com/u/isaklafleur)
#### Post date: [November 1, 2021, 6:50pm UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/7 "2021-11-01T18:50:22Z")

</div>

Please fix this. To upload 150mb of node file is quite crazy if other files are a couple of mbs…

---

<div class="post-metadata">

### Author: ![designlobby](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/designlobby/32/1308_2.png) [@designlobby](https://community.kinsta.com/u/designlobby)
#### Post date: [June 13, 2022, 3:26pm UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/8 "2022-06-13T15:26:21Z")

</div>

+1 for respecting .gitignore files please!

---

<div class="post-metadata">

### Author: ![mwalcott](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/mwalcott/32/2882_2.png) [@mwalcott](https://community.kinsta.com/u/mwalcott)
#### Post date: [June 16, 2022, 8:49pm UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/9 "2022-06-16T20:49:47Z")

</div>

Has there been any updates on this. Looks likes it been over 6 months? I have the same issues of having to upload node\_modules. Please give us an update

---

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)
#### Post date: [June 16, 2022, 9:18pm UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/10 "2022-06-16T21:18:19Z")

</div>

HI @mwalcott, file selection and exclusion is slated to be released _after_ the next major release, so during Q3 of this year.

Right now the only workaround is to move the the folder out of `~/public` before the transfer then move it back or delete the folder then recreate node\_modules after the file transfer.

---

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)
#### Post date: [September 21, 2022, 6:43pm UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/11 "2022-09-21T18:43:01Z")

</div>

Hello everyone, I’m just announcing that file/folder exclusion is now live in version 2.8.0: [DevKinsta Releases (Minor) - #13 by Kevin](https://community.kinsta.com/t/devkinsta-releases-minor/371/13)

---

<div class="post-metadata">

### Author: ![Pete\_Duncanson](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/pete_duncanson/32/4361_2.png) [@Pete\_Duncanson](https://community.kinsta.com/u/Pete_Duncanson)
#### Post date: [January 10, 2025, 10:15am UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/12 "2025-01-10T10:15:33Z")

</div>

Re-awakening this one as the release sounds like its going to do what was requested but its actually a UI for selecting which files to include/exclude so a manual task each time rather than respecting an ignore file or similar. Plus the UI often times out for me anyway!

So, once more will feeling, is there a way to have an exclude file to prevent some files getting uploaded AND ideally pulled down?

---

<div class="post-metadata">

### Author: ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)
#### Post date: [January 10, 2025, 1:12pm UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/13 "2025-01-10T13:12:05Z")

</div>

Hello @Pete_Duncanson 👋

Since your posts in the 3 threads are in regards to the same issue, I suggest we continue the discussion here: [How to properly deploy WordPress to Kinsta? - #3 by Pete\_Duncanson](https://community.kinsta.com/t/how-to-properly-deploy-wordpress-to-kinsta/4540/3)

I’ll send my reply soon.

Kind regads

---

<div class="post-metadata">

### Author: ![Saqib\_Syed](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/saqib_syed/32/4412_2.png) [@Saqib\_Syed](https://community.kinsta.com/u/Saqib_Syed)
#### Post date: [January 24, 2025, 1:07pm UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/14 "2025-01-24T13:07:31Z")

</div>

> [@ZachTheHack](#):
>
> Is there a way to exclude certain files from being uploaded? Like when I’m developing locally[,](https://menuland.ph/dunkins-doughnuts-menu-in-philippines/) then wanna push it to staging, I don’t want node\_modules to get uploaded too.

Great article! Is there a way to exclude certain files (like `node_modules`) when pushing to staging? It’d be helpful to avoid uploading unnecessary files during development.

---

<div class="post-metadata">

### Author: ![nikoladjuric](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/nikoladjuric/32/3267_2.png) [@nikoladjuric](https://community.kinsta.com/u/nikoladjuric)
#### Post date: [January 24, 2025, 1:13pm UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/15 "2025-01-24T13:13:28Z")

</div>

Hello there 👋 The granual push/pull is available now so you can select which folders to sync from DevKinsta.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/f/f0fa2ee33bf8dae8a70246749150b56ecd10cbdc.jpeg)

---

<div class="post-metadata">

### Author: ![Jack\_Rogers](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@Jack\_Rogers](https://community.kinsta.com/u/Jack_Rogers)
#### Post date: [March 3, 2025, 12:00am UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/18 "2025-03-03T00:00:14Z")

</div>

> [@nikoladjuric](#):
>
> Hello there [👋](https://soulknightapk.com/) The granual push/pull is available now so you can select which folders to sync from DevKinsta.
> 
> ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/f/f0fa2ee33bf8dae8a70246749150b56ecd10cbdc.jpeg)

That’s awesome! Granular push/pull will definitely make syncing more efficient. Thanks for the update!

---

<div class="post-metadata">

### Author: ![Agus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/agus/32/1515_2.png) [@Agus](https://community.kinsta.com/u/Agus)
#### Post date: [March 3, 2025, 12:04am UTC](https://community.kinsta.com/t/exclude-node-modules-from-import/227/19 "2025-03-03T00:04:10Z")

</div>


