Skip to content

Instantly share code, notes, and snippets.

@kenany
Last active August 29, 2015 14:06
Show Gist options
  • Save kenany/4565f3e05ad5423b9028 to your computer and use it in GitHub Desktop.
Save kenany/4565f3e05ad5423b9028 to your computer and use it in GitHub Desktop.
diff --git a/lib/cache.js b/lib/cache.js
index 281d610..ca99399 100644
--- a/lib/cache.js
+++ b/lib/cache.js
@@ -304,7 +304,7 @@ function addNonLocal (spec, cb) {
maybeGithub(p.spec, cb)
break
default:
- if (p.name) return addNamed(p.name, p.spec, null, cb)
+ if (p.name) return addNamed(p.name, p.rawSpec, null, cb)
cb(new Error("couldn't figure out how to install " + spec))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment