🐞 Bug report
Command (mark with an x)
Description
I have custom schematics to generate a new application using ng new -c my-custom-schematics. I am attempting to add migrations so I can update my applications when the schematics are updated, using ng update my-custom-schematics. During development of these migrations, if I npm link my-custom-schematics in the generated application and run ng update my-custom-schematics --migrate-only --from=1 I receive the error "Package found in package.json but is not installed." If I copy the package to the application's node_modules folder, it works fine. The problem only arises using npm link.
🔬 Minimal Reproduction
- Generate a new application using custom schematics.
- Update the schematic to include migrations to a new version.
npm link the application to the new version of the schematics
- Run
ng update my-custom-schematics --migrate-only --from=1
🔥 Exception or Error
Package found in package.json but is not installed.
Anything else relevant?
Not receiving the error if I copy the package to the application's node_modules folder. Only occurs if the schematics package is npm linked.
🐞 Bug report
Command (mark with an
x)Description
I have custom schematics to generate a new application using
ng new -c my-custom-schematics. I am attempting to add migrations so I can update my applications when the schematics are updated, usingng update my-custom-schematics. During development of these migrations, if Inpm link my-custom-schematicsin the generated application and runng update my-custom-schematics --migrate-only --from=1I receive the error "Package found in package.json but is not installed." If I copy the package to the application's node_modules folder, it works fine. The problem only arises usingnpm link.🔬 Minimal Reproduction
npm linkthe application to the new version of the schematicsng update my-custom-schematics --migrate-only --from=1🔥 Exception or Error
Anything else relevant?
Not receiving the error if I copy the package to the application's node_modules folder. Only occurs if the schematics package is npm linked.