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)
toInstall[where] = [ww.what]