I've been following the example for creating a custom angular schematic here: Creating your own application template for angular-cli
And I've gotten it to work as expected on Mac. However, when I try to build from my schematic on a PC, I just get the basic src files of the schematic without any of the transformations from my custom files in the workspace and src directories.
For example, the angular.json and package.json in the source directory at @my-schematic/my-schematic/workspace/files/
Are not getting copied over into the new project's root folder.
To build the project I'm using the following steps:
1) npm install -g @angular-devkit/schematics
1a) npm install -g @angular-devkit/schematics-cli
2) npm install -g @my-schematic/my-schematic
3) ng new --collection=@my-schematic/my-schematic foldername
4) cd [foldername]
5) npm install
6) ng serve