Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is my node_modules folder greyed out after command 'npm install'?

I wonder why my node_modules folder is greyed out in my VS Code editor after I run the command npm install.

Here the picture of my folder:

enter image description here

like image 929
quinzo Avatar asked Feb 12 '19 16:02

quinzo


People also ask

Why is file greyed out VS code?

the grey out file means the file is excluded from the build. That means the file is excluded from the build.

What is npm node_modules folder?

The “global node_modules” directory is a special directory where all modules installed with npm install -g are stored. You can find the path to your global node_modules directory by running npm root -g .

Why is my node_modules empty?

This error happens when there are missing packages in your node_modules/ folder that prevents the development server from running. To solve this error, you need to make sure that you have the node_modules/ folder generated by the npm install command.


1 Answers

Files/folders that are included in .gitignore are greyed out. Normally node_modules folder is included within .gitignore.

like image 155
artze Avatar answered Sep 30 '22 13:09

artze