diff --git a/tools/osx-pkg-preinstall.sh b/tools/osx-pkg-preinstall.sh
new file mode 100644
index 00000000000000..41cf0ec2c32922
--- /dev/null
+++ b/tools/osx-pkg-preinstall.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+# TODO Can this be done inside the .pmdoc?
+# TODO Can we extract $PREFIX from the installer?
+
+set -e
+
+rm -rf /usr/local/lib/node_modules/npm
diff --git a/tools/osx-pkg.pmdoc/02npm.xml b/tools/osx-pkg.pmdoc/02npm.xml
index fca97e5c27dd11..a7ef3c62fa72b0 100644
--- a/tools/osx-pkg.pmdoc/02npm.xml
+++ b/tools/osx-pkg.pmdoc/02npm.xml
@@ -19,6 +19,7 @@
installTo.isAbsoluteType
+ osx-pkg-preinstall.sh
osx-pkg-postinstall.sh