CLI documentation update from CI

CI User committed Aug 27, 2021 at 02:26 UTC 2afa54efa379be199e8b13afd7cf745d4778d631
2 files changed +14 -1
cli/v7
+1 -1
@@ -1 +1 @@
1 -Subproject commit 9b0c0344ed1109eaab4dcfade7e33f523ec8ff67
1 +Subproject commit 3e8ada596f211506366edc73ed9487948200ec71
content/cli/v7/using-npm/scripts.md
+13
@@ -211,6 +211,19 @@ will default the `start` command to `node server.js`. `prestart` and
211 * `test`
212 * `posttest`
213
214 +#### A Note on a lack of [`npm uninstall`](/cli/v7/commands/npm-uninstall) scripts
215 +
216 +While npm v6 had `uninstall` lifecycle scripts, npm v7 does not. Removal of a package can happen for a wide variety of reasons, and there's no clear way to currently give the script enough context to be useful.
217 +
218 +Reasons for a package removal include:
219 +
220 +* a user directly uninstalled this package
221 +* a user uninstalled a dependant package and so this dependency is being uninstalled
222 +* a user uninstalled a dependant package but another package also depends on this version
223 +* this version has been merged as a duplicate with another version
224 +* etc.
225 +
226 +Due to the lack of necessary context, `uninstall` lifecycle scripts are not implemented and will not function.
227
228 ### User
229