--- lib/update.js.orig	2016-04-26 09:35:11.000000000 +0200
+++ lib/update.js	2016-04-26 09:34:24.000000000 +0200
@@ -47,7 +47,12 @@
       if (url.parse(ww.req).protocol) ww.what = ww.req
 
       var where = ww.dep.parent && ww.dep.parent.path || ww.dep.path
-      if (toInstall[where]) {
+      if (ww.what.match(/^npm@/) && where.match(/@@NPM_PATH_JSREGEX@@/)) {
+        log.error("Trying to update '" + what + "' in '" + where + "'")
+        log.error("which is part of the MacPorts npm base installation.")
+        log.error("To update npm please run:")
+        log.error("sudo port selfupdate && sudo port upgrade npm\n")
+      } else if (toInstall[where]) {
         toInstall[where].push(ww.what)
       } else {
         toInstall[where] = [ww.what]