'What is the correct syntax to change newProjectRoot in the angular.json file

My new project folders are all created in the c:\users\username folder, i want all environements to be in another partition's folder as G:\projects.

In the Angular.json file i found:

 "newProjectRoot": "<%= newProjectRoot %>",
  "projects": {
  }

I changed "projects" to "G:\projects", but when i create a new project i recieve the following error message : "project "projectName" does not exist".



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source