How to Hide node_modules Folder in VS Code?

Introduction

If you’re working with Node.js, chances are you’ve encountered the node_modules folder. This folder is created when you install packages from NPM and can take up an incredible amount of space. To keep your workspace clean and tidy, you might want to learn how to hide the node_modules folder in Visual Studio Code. In this blog post, we’ll explain how to do it in three easy steps.

Step 1: Open Settings

The first step is to open the settings in Visual Studio Code. You can do this by clicking on the gear icon in the bottom-left corner of the sidebar.

Step 2: Find Files Exclude

Once you open the settings, you’ll need to find the Files: Exclude section. This section allows you to hide certain files and folders from the Explorer view.

Step 3: Add node_modules

The final step is to add the node_modules folder to the list of excluded files and folders. To do this, you’ll need to type in the name of the folder in the text field. Once you do that, the node_modules folder will no longer appear in the Explorer view.

Conclusion

That’s all you need to know about hiding the node_modules folder in Visual Studio Code. It’s a simple process that can help you keep your workspace uncluttered and organized. Give it a try and see how it works for you!

Happy Coding!

npm install –force in vercel deployment

I have hosted an next js application in vercel. At some point, the npm dependencies doesn’t worked properly with npm install

It got error as Vercel deployment build failed with command npm install exited with 1

I have used the command npm install --force in my local box. I was checking how to achieve the same in my vercel deployment as well.

After sometime found these settings in vercel where we can can override the default Install command and provide our custom command.

I have override the settings and gave my custom command npm install --force in the Build & Development Settings.

The setting present under Project → Settings → General → Build & Development Settings.

Happy Coding!