From 8150dd5f72520eb143f75e44787a5775bd8b8ebc Mon Sep 17 00:00:00 2001 From: Enrico Weigelt Date: Thu, 8 Mar 2018 22:15:58 +0100 Subject: [PATCH] makefile: dont call destructive 'uninstall' on clean (#16540) The 'clean' rule calls 'uninstall', which attemts ***destructive*** operation in the host system and fails if run as unprivileged user. PR-URL: https://github.com/npm/npm/pull/16540 Credit: @metux Reviewed-By: @iarna Reviewed-By: @zkat --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 42b7beda933..42e465e7d17 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,7 @@ dev: install link: uninstall node bin/npm-cli.js link -f -clean: markedclean marked-manclean doc-clean uninstall +clean: markedclean marked-manclean doc-clean rm -rf npmrc node bin/npm-cli.js cache clean