Issue
I'm working with Angular2 in several projects. Each of this projects uses a different version of angular-cli
, so, I need to be able to run and compile for production each separately with the correct version of angular-cli
. When I installed angular-cli
locally using save-dev
, ng commands not found so I cannot create a build distribution for the project.
So the question are, how can I have multiples angular-cli
version in the same machine, without installed globally (with -g option)?, it is possible run ng commands without installing angular-cli
globally?
Solution
You could use NVM which is a Node Version Manager and allows you to work with different global modules in each Node version.
In my case, I'm working with Node 6.9.5 and Angular2 in one project, and Node 10 and Angular6 in other.
You only have to pay attention which version is seated and work as normally as you do.
Answered By - M. Gleria
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.