When I modify a node module in my vue.js project, do I have to recompile something to get it to work? The change is not reflected

Viewed 1210

I'm working on a Vue.js project and I run into something the Bootstrap-vue module does that I'd like to get rid of. I located the place in the module that causes the behavior and commented it out. However, this is not reflected on the project. Did I miss a step here?

1 Answers
  • Firstly, never a good idea to alter your node_modules packages directly,

  • if you want to see the changes then run yarn install or npm install depending on what package your project is running on, after that run your local serve and changes should have taken effect

Side note: if you are working within a team or peer programming then I would not advise the altering of your node_modules, as the package.json would just overwrite the the changes on their side if using a Git environment to share code

Related