ng update
migrations not working on npm linked custom schematics
#15511
Labels
area: @angular/cli
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 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-schematics
in the generated application and runng 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 usingnpm link
.🔬 Minimal Reproduction
npm link
the 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.
The text was updated successfully, but these errors were encountered: