Do you have a file in your project called .gitignore? If you look in this file, you should see a line referencing node_modules. You can comment out this line, and then add node modules to git by running git add node_modules. If you are pushing your code to GitHub, I recommend that you do not push anything from node_modules.
OK, if you used create-vue-app or a similar tool for starting a Vue project I think it will add .gitignore automatically. What is your concern with the node_modules files? In general there should be no reason to go into that folder. If you want to see what is installed there you can look into package.json.
I also have the same issue, the node modules folder is greyed out and because of that I couldn't able to use any packages in my code, for example I imported react-native-vector-icons/Ionicons inside my project and when I use the Icon component to display the icon, The icon is not showing in my project. And also I couldn't use any packages in my project. So, Is there any solution for this issue?
I created new project and not by cloning from github
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Do you have a file in your project called
.gitignore? If you look in this file, you should see a line referencingnode_modules. You can comment out this line, and then add node modules to git by runninggit add node_modules. If you are pushing your code to GitHub, I recommend that you do not push anything fromnode_modules.I’m not using GitHub, I just created a new react project and it was greyed out
OK, if you used create-vue-app or a similar tool for starting a Vue project I think it will add .gitignore automatically. What is your concern with the node_modules files? In general there should be no reason to go into that folder. If you want to see what is installed there you can look into package.json.
I also have the same issue, the node modules folder is greyed out and because of that I couldn't able to use any packages in my code, for example I imported react-native-vector-icons/Ionicons inside my project and when I use the Icon component to display the icon, The icon is not showing in my project. And also I couldn't use any packages in my project. So, Is there any solution for this issue?
I created new project and not by cloning from github