Nvm is a Node version manager command line tool. I found two concepts that seemed promising to be used together: It was in that moment that I started to search for a possible solution to manage different Node and Angular versions for different projects. Besides, it’s good practice to maintain versions during development, unless explicitly wanting to change them. When downgrading/upgrading Angular CLI, you also need to make sure the Node version being used is compatible. An Angular project’s CLI version is in the package.json file, but what about the Node version? That is a piece of information that must be documented, and as we all know well, documentation is almost always left behind.Įach Angular version is compatible with a range of Node versions. Not only is this a time-wasting process, it is susceptible to errors from missing information. I must admit that the first time this switch was needed, I naively downgraded both Node and Angular CLI… Only to then upgrade them again when I went back to working on my current project. So I eventually came to a point where I needed to actively work on my current project but be able to quickly switch back to any of the other projects. Not only that, but all of these projects had at least one Node based component and a big part of them also used Angular as their Frontend framework. In my line of work as a Web Engineer, I have leaped through a decent amount of projects in a not so big amount of time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |